summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index d762bde2..8860d4c4 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -145,6 +145,7 @@ namespace {
if (event.getId() == "yes" || event.getId() == "ok") {
done = true;
}
+ disconnectedDialog = NULL;
}
} exitListener;
}
@@ -445,9 +446,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();
}
}
}