┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-06-25 17:04:12 +0000
committerPeter Penz <[email protected]>2008-06-25 17:04:12 +0000
commit0df5527c21bfbde59557031647a3d2f22961e31b (patch)
tree39b67ff8e6f4e091fbdd3c022afbb01b4a6068db /src/dolphindetailsview.cpp
parentfa9da5cbaff25d2f599d27105e25ec7451477df3 (diff)
fixed issue that CTRL + mouseclick did not work anymore in the details view
BUG: 164693 svn path=/trunk/KDE/kdebase/apps/; revision=824372
Diffstat (limited to 'src/dolphindetailsview.cpp')
-rw-r--r--src/dolphindetailsview.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp
index 12513420d..e33b57500 100644
--- a/src/dolphindetailsview.cpp
+++ b/src/dolphindetailsview.cpp
@@ -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);
}