]> cloud.milkyroute.net Git - dolphin.git/commitdiff
When pasting or dropping items in the view in Dolphin or the
authorFrank Reininghaus <frank78ac@googlemail.com>
Thu, 27 May 2010 18:16:53 +0000 (18:16 +0000)
committerFrank Reininghaus <frank78ac@googlemail.com>
Thu, 27 May 2010 18:16:53 +0000 (18:16 +0000)
DolphinPart (running in Konqueror), do not only select the new items,
but also clear the previous selection.

BUG: 223905

svn path=/trunk/KDE/kdebase/apps/; revision=1131230

src/dolphinview.cpp

index 1c06f560c5fe6e4e080c8c424af40d7bba574e85..cda384da4ef78d658451c40a4586fdbe501450c5 100644 (file)
@@ -1105,7 +1105,8 @@ void DolphinView::slotDirListerCompleted()
 
     if (!m_newFileNames.isEmpty()) {
         // select all newly added items created by a paste operation or
-        // a drag & drop operation
+        // a drag & drop operation, and clear the previous selection
+        m_viewAccessor.itemView()->clearSelection();
         const int rowCount = m_viewAccessor.proxyModel()->rowCount();
         QItemSelection selection;
         for (int row = 0; row < rowCount; ++row) {