┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2012-11-18 16:22:52 +0100
committerFrank Reininghaus <[email protected]>2012-11-18 16:22:52 +0100
commit96672c166f2acfe56b5a2779562082a0e9fab825 (patch)
treec6d0fe0c6017d6e253649f66810652d7e458c96e /src
parentce1bdf40cf6f8c9b6c7d330df91cd79947617212 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/views/dolphinview.cpp7
1 files changed, 5 insertions, 2 deletions
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<KUrl>() << url);
+ if (m_active) {
+ clearSelection();
+ markUrlAsCurrent(url);
+ markUrlsAsSelected(QList<KUrl>() << url);
+ }
}
void DolphinView::slotDirectoryRedirection(const KUrl& oldUrl, const KUrl& newUrl)