]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fixed issue that Ctrl+A inverted the selection instead doing a "Select All". It seems...
authorPeter Penz <peter.penz19@gmail.com>
Sat, 15 Dec 2007 16:48:48 +0000 (16:48 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 15 Dec 2007 16:48:48 +0000 (16:48 +0000)
BUG: 153938

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

src/dolphinview.cpp

index 4db66cd4bb4ce07921c93ba38a6f5f4b71c4401d..8502bfd2268be7bb3d0ab27d967905b74341c91e 100644 (file)
@@ -320,7 +320,13 @@ bool DolphinView::supportsCategorizedSorting() const
 
 void DolphinView::selectAll()
 {
-    itemView()->selectAll();
+    QAbstractItemView* view = itemView();
+    // TODO: there seems to be a bug in QAbstractItemView::selectAll(); if
+    // the Ctrl-key is pressed (e. g. for Ctrl+A), selectAll() inverts the
+    // selection instead of selecting all items. This is bypassed for KDE 4.0
+    // by invoking clearSelection() first.
+    view->clearSelection();
+    view->selectAll();
 }
 
 void DolphinView::invertSelection()