Drop early return.

Took 1 hour 13 minutes


Took 2 minutes

Took 1 minute
This commit is contained in:
Lukas Brübach 2026-06-06 02:51:13 +02:00
parent 54df2ff99c
commit 0d34818e19

View file

@ -476,7 +476,6 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
{ {
if (event->button() == Qt::RightButton && owner != nullptr) { if (event->button() == Qt::RightButton && owner != nullptr) {
emit rightClicked(this, event->screenPos()); emit rightClicked(this, event->screenPos());
return;
} }
if ((event->modifiers() != Qt::AltModifier) && (event->button() == Qt::LeftButton) && if ((event->modifiers() != Qt::AltModifier) && (event->button() == Qt::LeftButton) &&
(!SettingsCache::instance().getDoubleClickToPlay())) { (!SettingsCache::instance().getDoubleClickToPlay())) {