From 3edecf98c306a291a57ec4902a80c09efe53407a Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Sun, 22 Apr 2012 11:19:37 +0200 Subject: [PATCH] if cards in multiple zones are selected, don't create drag items for the ones you're not supposed to move --- cockatrice/src/carditem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/carditem.cpp b/cockatrice/src/carditem.cpp index 7d1eb538..453b3cfa 100644 --- a/cockatrice/src/carditem.cpp +++ b/cockatrice/src/carditem.cpp @@ -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;