From 85f85e8532caabe2e287a1f0c8bfe68596251845 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Thu, 27 May 2010 18:16:53 +0000 Subject: [PATCH] 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 --- src/dolphinview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.47.3