replaced hard function call with signal connection

Signed-off-by: Ettore Dreucci <ettore.dreucci@gmail.com>
This commit is contained in:
Ettore Dreucci 2017-08-23 00:21:08 +02:00
parent 03bd346432
commit 12b5cf0331
No known key found for this signature in database
GPG key ID: 74E72B78FCF68191
3 changed files with 3 additions and 6 deletions

View file

@ -465,10 +465,6 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
m_searchWidgetAction->setEnabled(true);
//if not already in search mode focus the search widget and select all its content
if (!inSearch) {
m_ui->toolBar->findChild<SearchWidget *>("SearchWidget")->searchFocus();
}
break;
}
case DatabaseWidget::EditMode: