From: Frank Reininghaus Date: Sun, 18 Nov 2012 15:22:52 +0000 (+0100) Subject: Only select a created item and make it 'current' in the active view X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/96672c166f2acfe56b5a2779562082a0e9fab825 Only select a created item and make it 'current' in the active view The 'make the new item the current one in all views' issue has been around for quite some time, the unexpected selection was a recent regression caused by commit b25059e803e7eed54f0593605a4066882d63bce2. Thanks to Jaime Torres for finding the regression early and for testing this patch! BUG: 310219 FIXED-IN: 4.9.4 --- diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index c4fe2d330..13db9896e 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1173,8 +1173,11 @@ QString DolphinView::viewPropertiesContext() const void DolphinView::observeCreatedItem(const KUrl& url) { - markUrlAsCurrent(url); - markUrlsAsSelected(QList() << url); + if (m_active) { + clearSelection(); + markUrlAsCurrent(url); + markUrlsAsSelected(QList() << url); + } } void DolphinView::slotDirectoryRedirection(const KUrl& oldUrl, const KUrl& newUrl)