┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-01-14 22:00:22 +0100
committerPeter Penz <[email protected]>2012-01-14 22:02:23 +0100
commitf38a70f5d06fdb6e9cb821e89b211edaf13390f1 (patch)
treea09e43afd1dc72e8e905321f764a64c9ee57bf0c /src
parentfcfb636ffe40065c46e44c7d987342826409f609 (diff)
Assure an active view when activating an item
This might not be the case when e.g. having a split view, having enabled the "auto expand folders" option and dragging an item from the active view to another folder of the inactive view.
Diffstat (limited to 'src')
-rw-r--r--src/dolphinviewcontainer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp
index df5fe6b15..2ad5bea5c 100644
--- a/src/dolphinviewcontainer.cpp
+++ b/src/dolphinviewcontainer.cpp
@@ -373,6 +373,11 @@ void DolphinViewContainer::slotFinishedPathLoading()
void DolphinViewContainer::slotItemActivated(const KFileItem& item)
{
+ // It is possible to activate items on inactive views by
+ // drag & drop operations. Assure that activating an item always
+ // results in an active view.
+ m_view->setActive(true);
+
KUrl url = item.targetUrl();
if (item.isDir()) {