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
This commit is contained in:
Peter Penz 2007-12-15 16:48:48 +00:00
parent 1e3da19459
commit ceafa5cc22

View 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()