Skip to content
Snippets Groups Projects
Commit a131793f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Eike Ziller
Browse files

Search: Allow empty prefix for completer


Change-Id: Ia3a77c4512c03496cac492d401c2bff3eee7a980
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 50733452
No related branches found
No related tags found
No related merge requests found
......@@ -105,6 +105,8 @@ bool FindToolWindow::eventFilter(QObject *obj, QEvent *event)
if (obj == m_ui.searchTerm && event->type() == QEvent::KeyPress) {
QKeyEvent *ke = static_cast<QKeyEvent *>(event);
if (ke->key() == Qt::Key_Down) {
if (m_ui.searchTerm->text().isEmpty())
m_findCompleter->setCompletionPrefix(QString());
m_findCompleter->complete();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment