diff options
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(); } |