]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Assure an active view when activating an item
authorPeter Penz <peter.penz19@gmail.com>
Sat, 14 Jan 2012 21:00:22 +0000 (22:00 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 14 Jan 2012 21:02:23 +0000 (22:02 +0100)
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.

src/dolphinviewcontainer.cpp

index df5fe6b15f06c0a0c139afefa06bab4ea1947b91..2ad5bea5cce8fb651c00e70740553d1de0ccc8cc 100644 (file)
@@ -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()) {