Remove unneeded if
This commit is contained in:
parent
438aacb9c4
commit
6470e1fd10
1 changed files with 6 additions and 8 deletions
|
@ -358,8 +358,7 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
|||
|
||||
void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
if (event->buttons() == Qt::LeftButton){
|
||||
if (settingsCache->getDoubleClickToPlay()) {
|
||||
if (settingsCache->getDoubleClickToPlay() && event->buttons() == Qt::LeftButton) {
|
||||
if (revealedCard)
|
||||
zone->removeCard(this);
|
||||
else
|
||||
|
@ -367,7 +366,6 @@ void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
|||
}
|
||||
event->accept();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool CardItem::animationEvent()
|
||||
|
|
Loading…
Reference in a new issue