┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinsearchbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/search/dolphinsearchbox.cpp')
-rw-r--r--src/search/dolphinsearchbox.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp
index d1a97d9a2..e2fd81a6f 100644
--- a/src/search/dolphinsearchbox.cpp
+++ b/src/search/dolphinsearchbox.cpp
@@ -284,9 +284,10 @@ bool DolphinSearchBox::eventFilter(QObject* watched, QEvent* event)
// Postpone the creation of the search completer until
// the search box is used. This decreases the startup time
// of Dolphin.
- Q_ASSERT(m_completer == 0);
- m_completer = new DolphinSearchCompleter(m_searchInput);
- m_searchInput->removeEventFilter(this);
+ if (m_completer == 0) {
+ m_completer = new DolphinSearchCompleter(m_searchInput);
+ }
+ emit requestSearchOptions();
}
return QWidget::eventFilter(watched, event);