hopefully last blinking startbutton fix

This commit is contained in:
doitux
2009-06-19 21:48:45 +00:00
parent bc13e164d1
commit ef7b163136
@@ -584,10 +584,10 @@ void gameLobbyDialogImpl::checkPlayerQuantity() {
}
}
else {
pushButton_StartGame->setEnabled(false);
blinkingButtonAnimationTimer->stop();
blinkingButtonAnimationState = false;
blinkingStartButtonAnimation();
pushButton_StartGame->setEnabled(false);
}
}
}
@@ -607,6 +607,9 @@ void gameLobbyDialogImpl::blinkingStartButtonAnimation() {
p.setColor(QPalette::ButtonText, defaultStartButtonTextColor);
pushButton_StartGame->setPalette(p);
blinkingButtonAnimationState = true;
if(!pushButton_StartGame->isEnabled()) {
pushButton_StartGame->setEnabled(false);
}
}
}