mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 20:13:56 -07:00
Remove unneeded if
This commit is contained in:
parent
438aacb9c4
commit
6470e1fd10
1 changed files with 6 additions and 8 deletions
|
|
@ -358,15 +358,13 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||||
|
|
||||||
void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
||||||
{
|
{
|
||||||
if (event->buttons() == Qt::LeftButton){
|
if (settingsCache->getDoubleClickToPlay() && event->buttons() == Qt::LeftButton) {
|
||||||
if (settingsCache->getDoubleClickToPlay()) {
|
if (revealedCard)
|
||||||
if (revealedCard)
|
zone->removeCard(this);
|
||||||
zone->removeCard(this);
|
else
|
||||||
else
|
playCard(event->modifiers().testFlag(Qt::ShiftModifier));
|
||||||
playCard(event->modifiers().testFlag(Qt::ShiftModifier));
|
|
||||||
}
|
|
||||||
event->accept();
|
|
||||||
}
|
}
|
||||||
|
event->accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue