From e21479ccc48ed8383a6ab72f45c43e12e8dffa69 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Aug 2014 21:26:04 +0300 Subject: Remove default values from okdialog constructor. --- src/client.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index c52468563..04b8746b2 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1383,7 +1383,8 @@ int Client::gameExec() logger->log1("State: LOGIN ERROR"); // TRANSLATORS: error dialog header mCurrentDialog = new OkDialog(_("Error"), - errorMessage, DialogType::ERROR); + errorMessage, DialogType::ERROR, + true, true, nullptr, 260); mCurrentDialog->addActionListener(&loginListener); mCurrentDialog = nullptr; // OkDialog deletes itself BLOCK_END("Client::gameExec STATE_LOGIN_ERROR") @@ -1394,7 +1395,8 @@ int Client::gameExec() logger->log1("State: ACCOUNT CHANGE ERROR"); // TRANSLATORS: error dialog header mCurrentDialog = new OkDialog(_("Error"), - errorMessage, DialogType::ERROR); + errorMessage, DialogType::ERROR, + true, true, nullptr, 260); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself BLOCK_END("Client::gameExec STATE_ACCOUNTCHANGE_ERROR") @@ -1449,7 +1451,7 @@ int Client::gameExec() mCurrentDialog = new OkDialog(_("Password Change"), // TRANSLATORS: password change message text _("Password changed successfully!"), - DialogType::ERROR); + DialogType::ERROR, true, true, nullptr, 260); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself loginData.password = loginData.newPassword; @@ -1473,7 +1475,8 @@ int Client::gameExec() // TRANSLATORS: email change message header mCurrentDialog = new OkDialog(_("Email Change"), // TRANSLATORS: email change message text - _("Email changed successfully!"), DialogType::ERROR); + _("Email changed successfully!"), DialogType::ERROR, + true, true, nullptr, 260); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself break; -- cgit v1.2.3-60-g2f50