From 00d70a1be85ce65cbe3847feb7f92193c68f0018 Mon Sep 17 00:00:00 2001 From: doitux Date: Fri, 23 Jul 2010 17:15:23 +0000 Subject: [PATCH] stop showcards animation when next hand starts --- src/gui/qt/gametable/gametableimpl.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gui/qt/gametable/gametableimpl.cpp b/src/gui/qt/gametable/gametableimpl.cpp index 02a602b7..400e90c3 100755 --- a/src/gui/qt/gametable/gametableimpl.cpp +++ b/src/gui/qt/gametable/gametableimpl.cpp @@ -2302,8 +2302,6 @@ void gameTableImpl::postRiverRunAnimation6() { void gameTableImpl::postRiverShowCards(unsigned playerId) { - qDebug() << "player : "<< playerId << "shows his cards"; - HandInterface *currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); QPixmap onePix = QPixmap::fromImage(QImage(myAppDataPath +"gfx/gui/misc/1px.png")); //TempArrays @@ -2460,11 +2458,14 @@ void gameTableImpl::nextRoundCleanGui() { boardCardsArray[i]->setPixmap(onePix, FALSE); boardCardsArray[i]->setFadeOutAction(FALSE); boardCardsArray[i]->stopFlipCardsAnimation(); - timeoutLabelArray[i]->stopTimeOutAnimation(); } for (i=0; isetFadeOutAction(FALSE);} + timeoutLabelArray[i]->stopTimeOutAnimation(); + for ( j=0; j<=1; j++ ) { + holeCardsArray[i][j]->setFadeOutAction(FALSE); + holeCardsArray[i][j]->stopFlipCardsAnimation(); + } } // for startNewGame during human player is active @@ -3448,7 +3449,8 @@ void gameTableImpl::sendShowMyCardsSignal() { if(pushButton_showMyCards->isVisible()) { - showMyCards(); + myStartWindow->getSession()->showMyCards(); +// showMyCards(); pushButton_showMyCards->hide(); } }