diff options
Diffstat (limited to 'shemov.cpp')
-rw-r--r-- | shemov.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -48,7 +48,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla //init database as early as possible splash.showMessage(tr("Initializing globals..."), Qt::AlignHCenter, Qt::yellow); qApp->processEvents(); - mSearchDialog = new SearchDialog(this); + mSearchDialog = new SearchDialog(); mSearchDialog->setHidden(true); (void) SmGlobals::instance(); @@ -64,7 +64,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla connect(mConsistencyA, &QAction::triggered, this, &SheMov::checkConsistency); QAction *searchDialogA = new QAction(tr("Search..."), this); searchDialogA->setShortcut(tr("CTRL+f")); - connect(searchDialogA, &QAction::triggered, mSearchDialog, &SearchDialog::show); + connect(searchDialogA, &QAction::triggered, mSearchDialog, [&] { mSearchDialog->show(); mSearchDialog->raise(); }); mQuitA = new QAction(tr("Quit"), this); mQuitA->setShortcut(tr("CTRL+q")); connect(mQuitA, &QAction::triggered, qApp, &QApplication::closeAllWindows); |