Commit 2c68fe33 authored by Vishesh Handa's avatar Vishesh Handa

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
parent 6072f58c
......@@ -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;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment