Manually set the keyboard shortcut for the Find/Replace dialog to Ctrl+H

Make sure the keyboard shortcut for the Find & Replace dialog is always
set to Ctrl+H instead of using Qt's QKeySequence::Replace. At least on
KDE desktops but probably on other systems too it break the Ctrl+R
shortcut which is used for refresh and SQL execution.
This commit is contained in:
Martin Kleusberg
2017-12-01 13:52:02 +01:00
parent 16263452c8
commit e79c5db308

View File

@@ -145,7 +145,7 @@ void MainWindow::init()
connect(shortcutBrowseRefreshF5, SIGNAL(activated()), this, SLOT(refresh()));
QShortcut* shortcutBrowseRefreshCtrlR = new QShortcut(QKeySequence("Ctrl+R"), this);
connect(shortcutBrowseRefreshCtrlR, SIGNAL(activated()), this, SLOT(refresh()));
QShortcut* shortcutFindReplace = new QShortcut(QKeySequence(QKeySequence::Replace), this);
QShortcut* shortcutFindReplace = new QShortcut(QKeySequence("Ctrl+H"), this);
connect(shortcutFindReplace, SIGNAL(activated()), this, SLOT(openFindReplaceDialog()));
// Create the actions for the recently opened dbs list