From: Vishesh Handa Date: Mon, 6 May 2013 13:48:11 +0000 (+0530) Subject: DolphinSearchBox setReadOnly: Update if either of the parameters change X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/fffbb5b583ffb5af2a7ff6b17104c23bf3b31727 DolphinSearchBox setReadOnly: Update if either of the parameters change This way when another read only query is added, the internal state is changed and the search label gets updated. REVIEW: 110324 BUG: 315796 FIXED-IN: 4.10.4 --- diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index 8b660712a..1792b2017 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -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();