summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2010-04-26 10:31:41 (GMT)
committerYoann Lopes <yoann.lopes@nokia.com>2010-04-26 10:54:24 (GMT)
commit27668f4df1756225cfa07fe4195024b501d66d25 (patch)
tree13a0d209bed7df90c708ac63b95a6a82bf36e7a8 /src/gui
parent8daa3ee6591f0ec5f65552a8a9290228d6e9f0ab (diff)
downloadQt-27668f4df1756225cfa07fe4195024b501d66d25.zip
Qt-27668f4df1756225cfa07fe4195024b501d66d25.tar.gz
Qt-27668f4df1756225cfa07fe4195024b501d66d25.tar.bz2
Fixes selection being cleared when right clicking on a selected item.
Autotest included. Task-number: QTBUG-10138 Reviewed-by: bnilsen
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index d1c5fd2..6db583a 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -7015,7 +7015,7 @@ void QGraphicsItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
setSelected(true);
}
}
- } else if (!(flags() & ItemIsMovable)) {
+ } else if (!(flags() & ItemIsMovable) && !isSelected()) {
event->ignore();
}
if (d_ptr->isWidget) {