]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinview.cpp
SVN_SILENT: minor coding style fix (Sebastian likes spaces :-))
[dolphin.git] / src / dolphinview.cpp
index fe42964099800dc88ee6025a66cfe4894ca6f6b8..54294161df6382ec40e689e87a5e2cde35d40fa6 100644 (file)
@@ -577,13 +577,7 @@ void DolphinView::setUrl(const KUrl& url)
 
 void DolphinView::selectAll()
 {
-    QAbstractItemView* view = m_viewAccessor.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();
+    m_viewAccessor.itemView()->selectAll();
 }
 
 void DolphinView::invertSelection()