mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 08:52:19 -07:00
Add active guard to counter mousePressEvent
This commit is contained in:
parent
e889e2dff5
commit
7b135fe10c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue