From 3f3ba5f3e18b0a5093e7275aee574ecd6f293ec6 Mon Sep 17 00:00:00 2001 From: David Athay Date: Thu, 3 Apr 2008 12:53:00 +0000 Subject: Tweaked disconnect dialog to fix crash bug id=250 --- src/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 553f80c3..0d8cfa6c 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -140,6 +140,7 @@ namespace { done = true; } exitConfirm = NULL; + disconnectedDialog = NULL; } } exitListener; } @@ -428,9 +429,8 @@ void Game::logic() OkDialog("Network Error", "The connection to the server was lost, the program will now quit"); disconnectedDialog->addActionListener(&exitListener); + disconnectedDialog->requestMoveToTop(); } - - disconnectedDialog->requestMoveToTop(); } } } -- cgit v1.2.3-70-g09d2