]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/search/dolphinsearchbox.cpp
[search] Do not update text input when it has focus
[dolphin.git] / src / search / dolphinsearchbox.cpp
index 239280280253f01e490fc98e7b6c87cbd0518046..20a527ff4672d6dd204eca7ab0bd3254079f65e0 100644 (file)
@@ -520,7 +520,10 @@ void DolphinSearchBox::updateFromQuery(const DolphinQuery& query)
         setSearchPath(QUrl::fromLocalFile(QDir::homePath()));
     }
 
-    setText(query.text());
+    // If the input box has focus, do not update to avoid messing with user typing
+    if (!m_searchInput->hasFocus()) {
+        setText(query.text());
+    }
 
     if (query.hasContentSearch()) {
         m_contentButton->setChecked(true);