From 2144791cac669d18b3831f124cbee31c42dc9996 Mon Sep 17 00:00:00 2001 From: doitux Date: Tue, 7 Jan 2014 16:05:54 +0100 Subject: [PATCH] hopefully final fix for #242 (Menu on gametable is not clickable sometimes) --- src/gui/qt/gametable/gametableimpl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/qt/gametable/gametableimpl.cpp b/src/gui/qt/gametable/gametableimpl.cpp index 841ff8a4..92688298 100755 --- a/src/gui/qt/gametable/gametableimpl.cpp +++ b/src/gui/qt/gametable/gametableimpl.cpp @@ -4480,6 +4480,8 @@ void gameTableImpl::refreshSpectatorsDisplay() assert(myStartWindow->getSession()); GameInfo info(myStartWindow->getSession()->getClientGameInfo(myStartWindow->getSession()->getClientCurrentGameId())); if(!info.spectatorsDuringGame.empty()) { + spectatorIcon->show(); + spectatorNumberLabel->show(); QPixmap spectatorPix(":/gfx/spectator.png"); int iconX = this->centralWidget()->geometry().width() - spectatorPix.width() - 1; int iconY = 2; @@ -4504,8 +4506,10 @@ void gameTableImpl::refreshSpectatorsDisplay() } else { spectatorIcon->setToolTip(""); spectatorIcon->clear(); + spectatorIcon->hide(); spectatorNumberLabel->setToolTip(""); spectatorNumberLabel->clear(); + spectatorNumberLabel->hide(); } }