diff options
| author | Nate Graham <[email protected]> | 2023-10-05 09:15:35 -0600 |
|---|---|---|
| committer | Nate Graham <[email protected]> | 2023-10-05 09:15:35 -0600 |
| commit | 30a807e44afb334dd153c8bcbdbde4f36942bee0 (patch) | |
| tree | f2bb4b386ac76e257f87689e75db7364c7a12f6c /src/dolphinviewcontainer.cpp | |
| parent | b6d9cb9949111fbaf5c875e76619ca7af83c6fc3 (diff) | |
| parent | b58fead9beaf3165146d3e536b6b14ae1cc9514d (diff) | |
Merge branch 'master' into kf6
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 66a9a116a..5b2a318d6 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -818,11 +818,13 @@ void DolphinViewContainer::slotUrlNavigatorLocationChanged(const QUrl &url) } if (KProtocolManager::supportsListing(url)) { - setSearchModeEnabled(isSearchUrl(url)); + const bool searchBoxInitialized = isSearchModeEnabled() && m_searchBox->text().isEmpty(); + setSearchModeEnabled(isSearchUrl(url) || searchBoxInitialized); + m_view->setUrl(url); tryRestoreViewState(); - if (m_autoGrabFocus && isActive() && !isSearchUrl(url)) { + if (m_autoGrabFocus && isActive() && !isSearchModeEnabled()) { // 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. |
