mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 18:31:32 +00:00
This commit is contained in:
parent
fed2a7768e
commit
b668ffaa56
@ -873,9 +873,11 @@ void game_controller::download_campaigns()
|
||||
|
||||
try {
|
||||
const network::manager net_manager;
|
||||
const network::connection sock = network::connect(items.front(),lexical_cast_default<int>(items.back(),15003));
|
||||
const network::connection sock = gui::network_connect_dialog(disp(), _("Connecting to Server..."),
|
||||
items.front(), lexical_cast_default<int>(items.back(),15003) );
|
||||
if(!sock) {
|
||||
gui::show_error_message(disp(), _("Could not connect to host."));
|
||||
preferences::set_campaign_server("");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user