From fffbb5b583ffb5af2a7ff6b17104c23bf3b31727 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Mon, 6 May 2013 19:18:11 +0530 Subject: [PATCH] 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 --- src/search/dolphinsearchbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.47.3