From 54fce3e2e5dc56829a5ba3d0da95c850233817e0 Mon Sep 17 00:00:00 2001 From: doitux Date: Thu, 15 Nov 2007 11:08:43 +0000 Subject: [PATCH] anti-peek-mode bugfix --- src/gui/qt/mainwindow/mainwindowimpl.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index 33536285..1803e45c 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -1395,7 +1395,10 @@ void mainWindowImpl::refreshGroupbox(int playerID, int status) { //hide buttons for(j=0; j<6; j++) { userWidgetsArray[j]->hide(); - } + } + //disable anti-peek front after player is out + holeCardsArray[0][0]->signalFastFlipCards(FALSE); + holeCardsArray[0][1]->signalFastFlipCards(FALSE); } else { groupBoxArray[(*it_c)->getMyID()]->setStyleSheet("QGroupBox { border:none; background-image: url(" + myAppDataPath +"gfx/gui/table/default/opponentBoxInactiveGlow.png) }"); @@ -1415,6 +1418,9 @@ void mainWindowImpl::refreshGroupbox(int playerID, int status) { for(j=0; j<6; j++) { userWidgetsArray[j]->hide(); } + //disable anti-peek front after player is out + holeCardsArray[0][0]->signalFastFlipCards(FALSE); + holeCardsArray[0][1]->signalFastFlipCards(FALSE); } else { groupBoxArray[playerID]->setStyleSheet("QGroupBox { border:none; background-image: url(" + myAppDataPath +"gfx/gui/table/default/opponentBoxInactiveGlow.png) }");