diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-30 16:50:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-30 16:50:50 +0300 |
commit | 143e04546197d75279d41e9eefe0fca4478673d4 (patch) | |
tree | 0a78eb7251943571342bba70210161af603473d8 /src/game.cpp | |
parent | dbe40332cd904f8e48504a2e8a3e7f74f4619712 (diff) | |
download | manaverse-143e04546197d75279d41e9eefe0fca4478673d4.tar.gz manaverse-143e04546197d75279d41e9eefe0fca4478673d4.tar.bz2 manaverse-143e04546197d75279d41e9eefe0fca4478673d4.tar.xz manaverse-143e04546197d75279d41e9eefe0fca4478673d4.zip |
Add ability to open support page if error happend.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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(); } |