Commit 1ed51386 authored by Aleksei Kanash's avatar Aleksei Kanash

Fix to Sankore-799.

parent f2b92ee4
...@@ -577,6 +577,12 @@ void UBBoardView::handleItemMousePress(QMouseEvent *event) ...@@ -577,6 +577,12 @@ void UBBoardView::handleItemMousePress(QMouseEvent *event)
{ {
mLastPressedMousePos = mapToScene(event->pos()); mLastPressedMousePos = mapToScene(event->pos());
foreach (QGraphicsItem *item, scene()->items())
{
if (movingItem != item)
item->setSelected(false);
}
if (itemShouldReceiveMousePressEvent(movingItem)) if (itemShouldReceiveMousePressEvent(movingItem))
QGraphicsView::mousePressEvent (event); QGraphicsView::mousePressEvent (event);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment