summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-30 16:50:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-30 16:50:50 +0300
commit143e04546197d75279d41e9eefe0fca4478673d4 (patch)
tree0a78eb7251943571342bba70210161af603473d8 /src/game.cpp
parentdbe40332cd904f8e48504a2e8a3e7f74f4619712 (diff)
downloadplus-143e04546197d75279d41e9eefe0fca4478673d4.tar.gz
plus-143e04546197d75279d41e9eefe0fca4478673d4.tar.bz2
plus-143e04546197d75279d41e9eefe0fca4478673d4.tar.xz
plus-143e04546197d75279d41e9eefe0fca4478673d4.zip
Add ability to open support page if error happend.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp9
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();
}