Add active guard to counter mousePressEvent

This commit is contained in:
DawnFire42 2026-08-10 12:23:34 -04:00
parent e889e2dff5
commit 7b135fe10c
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33

View file

@ -151,7 +151,7 @@ void AbstractCounter::refreshShortcuts()
void AbstractCounter::mousePressEvent(QGraphicsSceneMouseEvent *event) void AbstractCounter::mousePressEvent(QGraphicsSceneMouseEvent *event)
{ {
if (!isUnderMouse() || !player->getPlayerInfo()->getLocalOrJudge()) { if (!active || !isUnderMouse() || !player->getPlayerInfo()->getLocalOrJudge()) {
event->ignore(); event->ignore();
return; return;
} }