From eeb5251c30c3cbcdff5db59b250286eae30792fb Mon Sep 17 00:00:00 2001 From: Wendi Gan Date: Sun, 28 Sep 2025 11:46:23 +0800 Subject: 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`. --- src/views/dolphinview.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/views') 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); } -- cgit v1.3