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 { else {
pushButton_StartGame->setEnabled(false);
blinkingButtonAnimationTimer->stop(); blinkingButtonAnimationTimer->stop();
blinkingButtonAnimationState = false; blinkingButtonAnimationState = false;
blinkingStartButtonAnimation(); blinkingStartButtonAnimation();
pushButton_StartGame->setEnabled(false);
} }
} }
} }
@@ -607,6 +607,9 @@ void gameLobbyDialogImpl::blinkingStartButtonAnimation() {
p.setColor(QPalette::ButtonText, defaultStartButtonTextColor); p.setColor(QPalette::ButtonText, defaultStartButtonTextColor);
pushButton_StartGame->setPalette(p); pushButton_StartGame->setPalette(p);
blinkingButtonAnimationState = true; blinkingButtonAnimationState = true;
if(!pushButton_StartGame->isEnabled()) {
pushButton_StartGame->setEnabled(false);
}
} }
} }