startbutton blink fix

This commit is contained in:
doitux
2009-06-19 21:16:21 +00:00
parent 4c8248353a
commit e79b3d5fae
@@ -573,10 +573,6 @@ void gameLobbyDialogImpl::checkPlayerQuantity() {
if (treeWidget_connectedPlayers->topLevelItemCount() >= 2) { if (treeWidget_connectedPlayers->topLevelItemCount() >= 2) {
pushButton_StartGame->setEnabled(true); pushButton_StartGame->setEnabled(true);
}
else {
pushButton_StartGame->setEnabled(false);
}
if(treeWidget_connectedPlayers->topLevelItemCount() == label_MaximumNumberOfPlayers->text().toInt()) { if(treeWidget_connectedPlayers->topLevelItemCount() == label_MaximumNumberOfPlayers->text().toInt()) {
blinkingButtonAnimationTimer->start(); blinkingButtonAnimationTimer->start();
@@ -587,6 +583,10 @@ void gameLobbyDialogImpl::checkPlayerQuantity() {
blinkingStartButtonAnimation(); blinkingStartButtonAnimation();
} }
} }
else {
pushButton_StartGame->setEnabled(false);
}
}
} }
void gameLobbyDialogImpl::blinkingStartButtonAnimation() { void gameLobbyDialogImpl::blinkingStartButtonAnimation() {