diff options
| author | Peter Penz <[email protected]> | 2012-05-10 23:26:29 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-05-10 23:29:25 +0200 |
| commit | 73c30c7ea25891d3579277734393b70d9d1e2ab3 (patch) | |
| tree | cd72e0b6ec9aed6f779d2bdf8b87a3904d2e97d6 /src/dolphinviewcontainer.cpp | |
| parent | 4fad8f8f530211839f431819031327275240f7f6 (diff) | |
Allow to remember view-properties for the search-mode
Per default Dolphin remembers the view-properties for each search-URL
individually. However when being in the search-mode, where the
search-URL is different each time by definition, it should also
be possible for the user to adjust the view-properties. The DolphinView
is not aware about any "search-mode", so an interface has been added
to provide a "context" for storing the view-properties. The context
will be adjusted by the DolphinViewContainer in case if the search-mode
is active.
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 51f2b4218..9e297364b 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -297,6 +297,8 @@ void DolphinViewContainer::setSearchModeEnabled(bool enabled) m_searchBox->setSearchPath(url); } } else { + m_view->setViewPropertiesContext(QString()); + // Restore the URL for the URL navigator. If Dolphin has been // started with a search-URL, the home URL is used as fallback. const KUrl url = m_searchBox->searchPath(); @@ -589,6 +591,7 @@ void DolphinViewContainer::startSearching() { const KUrl url = m_searchBox->urlForSearching(); if (url.isValid() && !url.isEmpty()) { + m_view->setViewPropertiesContext("search"); m_urlNavigator->setLocationUrl(url); } } |
