Commit 3edecf98 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

if cards in multiple zones are selected, don't create drag items for the ones...

if cards in multiple zones are selected, don't create drag items for the ones you're not supposed to move
parent 6a52d65c
...@@ -295,7 +295,7 @@ void CardItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event) ...@@ -295,7 +295,7 @@ void CardItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
int j = 0; int j = 0;
for (int i = 0; i < sel.size(); i++) { for (int i = 0; i < sel.size(); i++) {
CardItem *c = (CardItem *) sel.at(i); CardItem *c = (CardItem *) sel.at(i);
if (c == this) if ((c == this) || (c->getZone() != zone))
continue; continue;
++j; ++j;
QPointF childPos; QPointF childPos;
......
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