if cards in multiple zones are selected, don't create drag items for the ones you're not supposed to move

This commit is contained in:
Max-Wilhelm Bruker 2012-04-22 11:19:37 +02:00
parent 6a52d65c4c
commit 3edecf98c3

View file

@ -295,7 +295,7 @@ void CardItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
int j = 0;
for (int i = 0; i < sel.size(); i++) {
CardItem *c = (CardItem *) sel.at(i);
if (c == this)
if ((c == this) || (c->getZone() != zone))
continue;
++j;
QPointF childPos;