Commit 2928eead authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

spectator arrow drag item fix

parent e92840c8
......@@ -297,6 +297,8 @@ void CardItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
if (event->buttons().testFlag(Qt::RightButton)) {
if ((event->screenPos() - event->buttonDownScreenPos(Qt::RightButton)).manhattanLength() < 2 * QApplication::startDragDistance())
return;
if (static_cast<TabGame *>(owner->parent())->getSpectator())
return;
QColor arrowColor = Qt::red;
if (event->modifiers().testFlag(Qt::ControlModifier))
......
Supports Markdown
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