From 005fd53193c213ab7b7696aac43cd19a5047511e Mon Sep 17 00:00:00 2001 From: Itay Cohen Date: Thu, 4 Oct 2018 18:33:19 +0300 Subject: [PATCH] fix redundent code (#763) --- src/widgets/FlagsWidget.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/widgets/FlagsWidget.cpp b/src/widgets/FlagsWidget.cpp index 98210755..9a74a060 100644 --- a/src/widgets/FlagsWidget.cpp +++ b/src/widgets/FlagsWidget.cpp @@ -137,9 +137,7 @@ FlagsWidget::FlagsWidget(MainWindow *main, QAction *action) : // Ctrl-F to move the focus to the Filter search box QShortcut *searchShortcut = new QShortcut(QKeySequence::Find, this); - connect(searchShortcut, &QShortcut::activated, [this] { - ui->filterLineEdit->setFocus(); - }); + connect(searchShortcut, SIGNAL(activated()), ui->filterLineEdit, SLOT(setFocus())); searchShortcut->setContext(Qt::WidgetWithChildrenShortcut); // Esc to clear the filter entry