]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Shift-clicks and Control-clicks should not open the item
authorFrank Reininghaus <frank78ac@googlemail.com>
Tue, 2 Aug 2011 22:37:38 +0000 (00:37 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Tue, 2 Aug 2011 22:44:36 +0000 (00:44 +0200)
src/kitemviews/kitemlistcontroller.cpp

index b58ddfae6b921fd5a52e24a94bb94783a1614b5a..aab40631e248342f664e541be09cceced5d51267 100644 (file)
@@ -164,6 +164,10 @@ bool KItemListController::mouseReleaseEvent(QGraphicsSceneMouseEvent* event, con
                     emit itemExpansionToggleClicked(index);
                     emitItemClicked = false;
                 }
+                else if (event->modifiers() & Qt::ShiftModifier || event->modifiers() & Qt::ControlModifier) {
+                    // The mouse click should only update the selection, not trigger the item.
+                    emitItemClicked = false;
+                }
             }
 
             if (emitItemClicked) {