diff options
| author | Peter Penz <[email protected]> | 2010-10-10 16:13:24 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-10-10 16:13:24 +0000 |
| commit | 717a665c4e6c0c9455ed46163216e7525f36ff87 (patch) | |
| tree | 003290f7efd9c5095ecfc7ee47f284979d0068dc /src/dolphinviewcontainer.cpp | |
| parent | 35f8c9d7b077ffff65ad23a5b1813a72465f5bd2 (diff) | |
Automatically start the searching if the user did not change the search-text for at least a second.
svn path=/trunk/KDE/kdebase/apps/; revision=1184510
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 45490e363..aa20409ba 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -102,6 +102,7 @@ DolphinViewContainer::DolphinViewContainer(const KUrl& url, QWidget* parent) : m_searchBox->hide(); connect(m_searchBox, SIGNAL(closeRequest()), this, SLOT(closeSearchBox())); connect(m_searchBox, SIGNAL(search(QString)), this, SLOT(startSearching(QString))); + connect(m_searchBox, SIGNAL(returnPressed(QString)), this, SLOT(requestFocus())); m_dirLister = new DolphinDirLister(); m_dirLister->setAutoUpdate(true); @@ -431,7 +432,7 @@ void DolphinViewContainer::slotUrlNavigatorLocationChanged(const KUrl& url) } m_view->setUrl(url); - if (isActive()) { + if (isActive() && !isSearchUrl(url)) { // When an URL has been entered, the view should get the focus. // The focus must be requested asynchronously, as changing the URL might create // a new view widget. |
