mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 18:38:51 +00:00
fix redundent code (#763)
This commit is contained in:
parent
d3766fab12
commit
005fd53193
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user