diff options
| author | Peter Penz <[email protected]> | 2011-02-05 23:33:08 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-02-05 23:33:08 +0100 |
| commit | 27456a2f73b3d01cc94233fda958d0b22cb1ac5b (patch) | |
| tree | 10f247281b858a63e63fbf4c72c53bf62c12d219 /src/dolphinviewcontainer.cpp | |
| parent | 0a9cdfa4ed20d5efca8bb6d5a156ccf506c58bcc (diff) | |
Provide a hook for externally triggered search queries
In this case the "From Here"/"Everywhere" buttons and the "Filename"/"Content" buttons are useless. Currently they just get disabled but the plan is to provide a better visual indication of the current query and to remove them completely.
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 922259858..dd70ed24e 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -212,13 +212,13 @@ void DolphinViewContainer::setSearchModeEnabled(bool enabled) m_urlNavigator->setVisible(!enabled); if (enabled) { + KUrl url = m_urlNavigator->locationUrl(); m_searchBox->setText(QString()); + m_searchBox->setReadOnly(isSearchUrl(url)); // Remember the most recent non-search URL as search path // of the search-box, so that it can be restored // when switching back to the URL navigator. - KUrl url = m_urlNavigator->locationUrl(); - int index = m_urlNavigator->historyIndex(); const int historySize = m_urlNavigator->historySize(); while (isSearchUrl(url) && (index < historySize)) { |
