]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/search/dolphinsearchbox.cpp
DolphinSearchBox setReadOnly: Update if either of the parameters change
[dolphin.git] / src / search / dolphinsearchbox.cpp
index 8b660712a1abff9545499a6164892d62e734f41e..1792b201761f683b8559a4b815805645d953ac1f 100644 (file)
@@ -159,7 +159,7 @@ void DolphinSearchBox::selectAll()
 
 void DolphinSearchBox::setReadOnly(bool readOnly, const KUrl& query)
 {
-    if (m_readOnly != readOnly) {
+    if (m_readOnly != readOnly || m_readOnlyQuery != query) {
         m_readOnly = readOnly;
         m_readOnlyQuery = query;
         applyReadOnlyState();