hopefully final fix for #242 (Menu on gametable is not clickable sometimes)
This commit is contained in:
@@ -4480,6 +4480,8 @@ void gameTableImpl::refreshSpectatorsDisplay()
|
|||||||
assert(myStartWindow->getSession());
|
assert(myStartWindow->getSession());
|
||||||
GameInfo info(myStartWindow->getSession()->getClientGameInfo(myStartWindow->getSession()->getClientCurrentGameId()));
|
GameInfo info(myStartWindow->getSession()->getClientGameInfo(myStartWindow->getSession()->getClientCurrentGameId()));
|
||||||
if(!info.spectatorsDuringGame.empty()) {
|
if(!info.spectatorsDuringGame.empty()) {
|
||||||
|
spectatorIcon->show();
|
||||||
|
spectatorNumberLabel->show();
|
||||||
QPixmap spectatorPix(":/gfx/spectator.png");
|
QPixmap spectatorPix(":/gfx/spectator.png");
|
||||||
int iconX = this->centralWidget()->geometry().width() - spectatorPix.width() - 1;
|
int iconX = this->centralWidget()->geometry().width() - spectatorPix.width() - 1;
|
||||||
int iconY = 2;
|
int iconY = 2;
|
||||||
@@ -4504,8 +4506,10 @@ void gameTableImpl::refreshSpectatorsDisplay()
|
|||||||
} else {
|
} else {
|
||||||
spectatorIcon->setToolTip("");
|
spectatorIcon->setToolTip("");
|
||||||
spectatorIcon->clear();
|
spectatorIcon->clear();
|
||||||
|
spectatorIcon->hide();
|
||||||
spectatorNumberLabel->setToolTip("");
|
spectatorNumberLabel->setToolTip("");
|
||||||
spectatorNumberLabel->clear();
|
spectatorNumberLabel->clear();
|
||||||
|
spectatorNumberLabel->hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user