diff options
| author | Wendi Gan <[email protected]> | 2025-09-28 11:46:23 +0800 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2025-10-03 06:49:14 +0000 |
| commit | eeb5251c30c3cbcdff5db59b250286eae30792fb (patch) | |
| tree | 8c78d18a145f2220330091204a7eebda07086821 /src/views/dolphinview.cpp | |
| parent | d0f8985b4c5c790781be6fcd06d299f087e78756 (diff) | |
DolphinViewContainer, DolphinView: Fix incorrect view activation when renaming folder
Issue:
In a split-view tab, if a folder is opened in the left view and its parent folder is opened in the right view, renaming the folder from the right view activates the left view.
Reason:
When renaming the folder, the emitted `DolphinView::urlChanged` will invoke `KUrlNavigator::setLocationUrl()`, which finally calls `DolphinViewContainer::setActive()` and activates the left view.
Change:
- Temporarily disconnect the `DolphinUrlNavigator::activated` signal to avoid activation of `DolphinViewContainer`.
- Force inactivate `DolphinUrlNavigator`.
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index e8772fdad..594eddb68 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1788,7 +1788,6 @@ void DolphinView::slotDirectoryRedirection(const QUrl &oldUrl, const QUrl &newUr if (oldUrl.matches(url(), QUrl::StripTrailingSlash)) { // Update the view's URL before emitting signals. m_url = newUrl; // #186947 - Q_EMIT urlChanged(m_url); Q_EMIT redirection(oldUrl, newUrl); } |
