┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-12-15 16:48:48 +0000
committerPeter Penz <[email protected]>2007-12-15 16:48:48 +0000
commitceafa5cc22d0450e2a0d27023c62f0d339c3ca10 (patch)
tree19943bd549011a4d39d5eb0b67dede1291ce2bed /src
parent1e3da1945921f8bb3e40a057044ac45518597066 (diff)
Fixed issue that Ctrl+A inverted the selection instead doing a "Select All". It seems like a Qt issue, but I'm not 100 % sure - I'll try to make this reproducible with a Qt-only code after KDE 4.0 and submit a bug report to Trolltech...
BUG: 153938 svn path=/trunk/KDE/kdebase/apps/; revision=748823
Diffstat (limited to 'src')
-rw-r--r--src/dolphinview.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 4db66cd4b..8502bfd22 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -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()