Play cards only with double left click

Fix #340
This commit is contained in:
Jeff 2015-07-08 00:55:35 -04:00
parent bfa002e50a
commit 438aacb9c4

View file

@ -358,6 +358,7 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
{
if (event->buttons() == Qt::LeftButton){
if (settingsCache->getDoubleClickToPlay()) {
if (revealedCard)
zone->removeCard(this);
@ -366,6 +367,7 @@ void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
}
event->accept();
}
}
bool CardItem::animationEvent()