GUI2: Convert the MP server message confirmation dialog

This commit is contained in:
Ignacio R. Morelle 2010-11-29 12:13:25 +00:00
parent bc00c708a2
commit da24fec21a

View file

@ -229,7 +229,7 @@ static server_type open_connection(game_display& disp, const std::string& origin
std::string password = preferences::password();
bool fall_through = (*error)["force_confirmation"].to_bool() ?
(gui::dialog(disp,_("Confirm"),(*error)["message"],gui::OK_CANCEL).show() != 0) :
(gui2::show_message(disp.video(), _("Confirm"), (*error)["message"], gui2::tmessage::ok_cancel_buttons) == gui2::twindow::CANCEL) :
false;
const bool is_pw_request = !((*error)["password_request"].empty()) && !(password.empty());