stop auto start gui timer if a connected player leaves the game
This commit is contained in:
@@ -800,6 +800,13 @@ void gameLobbyDialogImpl::checkPlayerQuantity() {
|
|||||||
blinkingStartButtonAnimation();
|
blinkingStartButtonAnimation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//general actions
|
||||||
|
if(treeWidget_connectedPlayers->topLevelItemCount() < treeWidget_connectedPlayers->headerItem()->data(0, Qt::UserRole).toInt()) {
|
||||||
|
autoStartTimerOverlay->hide();
|
||||||
|
autoStartTimer->stop();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gameLobbyDialogImpl::blinkingStartButtonAnimation() {
|
void gameLobbyDialogImpl::blinkingStartButtonAnimation() {
|
||||||
@@ -1157,6 +1164,10 @@ void gameLobbyDialogImpl::leaveGame() {
|
|||||||
|
|
||||||
assert(mySession);
|
assert(mySession);
|
||||||
mySession->sendLeaveCurrentGame();
|
mySession->sendLeaveCurrentGame();
|
||||||
|
|
||||||
|
//stop autoStartTimerOverlay
|
||||||
|
autoStartTimerOverlay->hide();
|
||||||
|
autoStartTimer->stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
void gameLobbyDialogImpl::kickPlayer() {
|
void gameLobbyDialogImpl::kickPlayer() {
|
||||||
|
|||||||
Reference in New Issue
Block a user