From: Frank Reininghaus Date: Thu, 27 May 2010 18:16:53 +0000 (+0000) Subject: When pasting or dropping items in the view in Dolphin or the X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/85f85e8532caabe2e287a1f0c8bfe68596251845 When pasting or dropping items in the view in Dolphin or the 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 --- diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 1c06f560c..cda384da4 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -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) {