diff options
| author | Vishesh Handa <[email protected]> | 2013-05-06 19:18:11 +0530 |
|---|---|---|
| committer | Vishesh Handa <[email protected]> | 2013-05-13 14:40:39 +0530 |
| commit | fffbb5b583ffb5af2a7ff6b17104c23bf3b31727 (patch) | |
| tree | 4696cdd956b8fcdadc9836b973d573339aeff0da /src/search/dolphinsearchbox.cpp | |
| parent | 3924b10b62ee76b88d6665ce8045f34dc8b48af2 (diff) | |
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
Diffstat (limited to 'src/search/dolphinsearchbox.cpp')
| -rw-r--r-- | src/search/dolphinsearchbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
