Fix "set wesnothd path" preference

This commit is contained in:
Celtic Minstrel 2016-04-04 15:49:21 -04:00
parent 1bdce5b937
commit 74fd5395a9

View file

@ -192,10 +192,9 @@ void show_wesnothd_server_search(CVideo& video)
, &symbols);
int res = dialogs::show_file_chooser_dialog(video, path, title, false, filename);
if (res == 0)
return path;
else
return "";
if (res == 0) {
preferences::set_mp_server_program_name(path);
}
}
} // end namespace preferences