]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Scroll to newly dropped files.
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Thu, 27 Feb 2014 11:17:48 +0000 (12:17 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Thu, 27 Feb 2014 11:17:48 +0000 (12:17 +0100)
If multiple files are dropped, scroll to the first dropped file.

BUG: 315722
FIXED-IN: 4.13
REVIEW: 116020

src/views/dolphinview.cpp

index 9f5f48a86b9521ccf2e6a1de43bcd3403c8c4308..b68e8aa6ac998447bf56b906159bcac262676676 100644 (file)
@@ -1046,6 +1046,7 @@ void DolphinView::slotItemDropEvent(int index, QGraphicsSceneDragDropEvent* even
     if (op && destUrl == url()) {
         // Mark the dropped urls as selected.
         m_clearSelectionBeforeSelectingNewItems = true;
+        m_markFirstNewlySelectedItemAsCurrent = true;
         connect(op, SIGNAL(aboutToCreate(KUrl::List)), this, SLOT(slotAboutToCreate(KUrl::List)));
     }