diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-16 17:21:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-16 17:21:24 +0300 |
commit | 396b3e298b21677ebe3c6f5c2f5b837ac25625f2 (patch) | |
tree | 01cfca3609db046afebe5c9e11ba0a5a803e378f /src/client.cpp | |
parent | e50013d92b22faeffb8711d07a8f344ab71e9e57 (diff) | |
download | manaverse-396b3e298b21677ebe3c6f5c2f5b837ac25625f2.tar.gz manaverse-396b3e298b21677ebe3c6f5c2f5b837ac25625f2.tar.bz2 manaverse-396b3e298b21677ebe3c6f5c2f5b837ac25625f2.tar.xz manaverse-396b3e298b21677ebe3c6f5c2f5b837ac25625f2.zip |
Move dialog type into separate file.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client.cpp b/src/client.cpp index 4469c1efc..d2b8fb474 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1579,7 +1579,7 @@ int Client::gameExec() logger->log1("State: LOGIN ERROR"); // TRANSLATORS: error dialog header mCurrentDialog = new OkDialog(_("Error"), - errorMessage, DIALOG_ERROR); + errorMessage, DialogType::ERROR); mCurrentDialog->addActionListener(&loginListener); mCurrentDialog = nullptr; // OkDialog deletes itself BLOCK_END("Client::gameExec STATE_LOGIN_ERROR") @@ -1590,7 +1590,7 @@ int Client::gameExec() logger->log1("State: ACCOUNT CHANGE ERROR"); // TRANSLATORS: error dialog header mCurrentDialog = new OkDialog(_("Error"), - errorMessage, DIALOG_ERROR); + errorMessage, DialogType::ERROR); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself BLOCK_END("Client::gameExec STATE_ACCOUNTCHANGE_ERROR") @@ -1644,7 +1644,7 @@ int Client::gameExec() // TRANSLATORS: password change message header mCurrentDialog = new OkDialog(_("Password Change"), // TRANSLATORS: password change message text - _("Password changed successfully!"), DIALOG_ERROR); + _("Password changed successfully!"), DialogType::ERROR); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself loginData.password = loginData.newPassword; @@ -1668,7 +1668,7 @@ int Client::gameExec() // TRANSLATORS: email change message header mCurrentDialog = new OkDialog(_("Email Change"), // TRANSLATORS: email change message text - _("Email changed successfully!"), DIALOG_ERROR); + _("Email changed successfully!"), DialogType::ERROR); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself break; @@ -2959,7 +2959,7 @@ Window *Client::openErrorDialog(const std::string &header, { if (getSupportUrl().empty() || config.getBoolValue("hidesupport")) { - return new OkDialog(header, message, DIALOG_ERROR, modal); + return new OkDialog(header, message, DialogType::ERROR, modal); } else { |