fix redundent code (#763)

This commit is contained in:
Itay Cohen 2018-10-04 18:33:19 +03:00 committed by GitHub
parent d3766fab12
commit 005fd53193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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