]> cloud.milkyroute.net Git - dolphin.git/commitdiff
fixed issue that CTRL + mouseclick did not work anymore in the details view
authorPeter Penz <peter.penz19@gmail.com>
Wed, 25 Jun 2008 17:04:12 +0000 (17:04 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 25 Jun 2008 17:04:12 +0000 (17:04 +0000)
BUG: 164693

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

src/dolphindetailsview.cpp

index 12513420d5a450cc8e5d574d6b4b61df18cf5b03..e33b575009962676f3785c694037143eae6c59ff 100644 (file)
@@ -378,7 +378,11 @@ void DolphinDetailsView::paintEvent(QPaintEvent* event)
 
 void DolphinDetailsView::keyPressEvent(QKeyEvent* event)
 {
-    m_keyPressed = true;
+    // If the Control modifier is pressed, a multiple selection
+    // is done and DolphinDetailsView::currentChanged() may not
+    // not change the selection in a custom way.
+    m_keyPressed = !(event->modifiers() & Qt::ControlModifier);
+
     QTreeView::keyPressEvent(event);
     m_controller->handleKeyPressEvent(event);
 }