QTfrontend/hwform.cpp
branch0.9.15
changeset 4746 3ae448aebe7e
parent 4594 5645462cc78f
child 4751 849740a91d36
--- a/QTfrontend/hwform.cpp	Fri Jan 14 00:31:21 2011 +0100
+++ b/QTfrontend/hwform.cpp	Sat Jan 15 16:44:32 2011 +0100
@@ -974,12 +974,13 @@
             if (id == ID_PAGE_INGAME ||
 // was room chief and the game was aborted
                 (hwnet && hwnet->isRoomChief() && hwnet->isInRoom() && 
-                    (gameState == gsInterrupted || gameState == gsStopped || gameState == gsDestroyed))) {
+                    (gameState == gsInterrupted || gameState == gsStopped || gameState == gsDestroyed || gameState == gsHalted))) {
                 if (id == ID_PAGE_INGAME) GoBack();
                 Music(ui.pageOptions->CBEnableFrontendMusic->isChecked());
                 if (wBackground) wBackground->startAnimation();
                 if (hwnet) hwnet->gameFinished();
             }
+            if (gameState == gsHalted) close();
         };
     }
 }