From 96672c166f2acfe56b5a2779562082a0e9fab825 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Sun, 18 Nov 2012 16:22:52 +0100 Subject: 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 --- src/views/dolphinview.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/views/dolphinview.cpp') 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) -- cgit v1.3