From 143e04546197d75279d41e9eefe0fca4478673d4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 30 Jun 2013 16:50:50 +0300 Subject: Add ability to open support page if error happend. --- src/game.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index bfe3aa5e0..052e20949 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -113,7 +113,7 @@ OkDialog *weightNotice = nullptr; int weightNoticeTime = 0; OkDialog *deathNotice = nullptr; QuitDialog *quitDialog = nullptr; -OkDialog *disconnectedDialog = nullptr; +Window *disconnectedDialog = nullptr; ChatWindow *chatWindow = nullptr; StatusWindow *statusWindow = nullptr; @@ -614,11 +614,12 @@ void Game::slowLogic() { if (!disconnectedDialog) { + // TRANSLATORS: error message text errorMessage = _("The connection to the server was lost."); - // TRANSLATORS: error message header - disconnectedDialog = new OkDialog(_("Network Error"), - errorMessage, DIALOG_ERROR, false); + disconnectedDialog = Client::openErrorDialog( + // TRANSLATORS: error message header + _("Network Error"), errorMessage, false); disconnectedDialog->addActionListener(&errorListener); disconnectedDialog->requestMoveToTop(); } -- cgit v1.2.3-70-g09d2