From a131793f517454c6dedfa33926b1012dbc36a839 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 9 Sep 2012 09:28:18 +0300 Subject: [PATCH] Search: Allow empty prefix for completer Change-Id: Ia3a77c4512c03496cac492d401c2bff3eee7a980 Reviewed-by: Eike Ziller --- src/plugins/find/findtoolwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/find/findtoolwindow.cpp b/src/plugins/find/findtoolwindow.cpp index f37d4593b52..ba57dd35b7d 100644 --- a/src/plugins/find/findtoolwindow.cpp +++ b/src/plugins/find/findtoolwindow.cpp @@ -105,6 +105,8 @@ bool FindToolWindow::eventFilter(QObject *obj, QEvent *event) if (obj == m_ui.searchTerm && event->type() == QEvent::KeyPress) { QKeyEvent *ke = static_cast(event); if (ke->key() == Qt::Key_Down) { + if (m_ui.searchTerm->text().isEmpty()) + m_findCompleter->setCompletionPrefix(QString()); m_findCompleter->complete(); } }