]> cloud.milkyroute.net Git - dolphin.git/commitdiff
move focus to another view upon drop
authorWeng Xuetian <wengxt@gmail.com>
Wed, 5 Jun 2013 21:07:31 +0000 (17:07 -0400)
committerWeng Xuetian <wengxt@gmail.com>
Wed, 5 Jun 2013 21:07:31 +0000 (17:07 -0400)
When user drag and drop to another splitted view, the view will be activated,
thus if user close the split view, the view will be closed, while this is
usually the case when user copy file to remote/removable media.

REVIEW: 110167
CCBUG: 312834

src/views/dolphinview.cpp

index 6fadaa85c58f7777d19f64f2beebfcb77826875e..9a4b8633efc0ff03e097357facd0eff75179ae45 100644 (file)
@@ -1041,6 +1041,8 @@ void DolphinView::slotItemDropEvent(int index, QGraphicsSceneDragDropEvent* even
         m_clearSelectionBeforeSelectingNewItems = true;
         connect(op, SIGNAL(urlPasted(KUrl)), this, SLOT(slotUrlPasted(KUrl)));
     }
+
+    setActive(true);
 }
 
 void DolphinView::slotModelChanged(KItemModelBase* current, KItemModelBase* previous)