┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-01-14 22:00:22 +0100
committerPeter Penz <[email protected]>2012-01-14 22:01:58 +0100
commited429d73097492591ee5025c80bea93eb4cbc23c (patch)
tree092e5d9b74f326db6ea6f43d13f89f76c2b27c0c
parent538d9bf43f4164179f57495e582ef1f44331fde4 (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.
-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()) {