From: Peter Penz Date: Sat, 14 Jan 2012 21:00:22 +0000 (+0100) Subject: Assure an active view when activating an item X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/f38a70f5d06fdb6e9cb821e89b211edaf13390f1 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. --- 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()) {