Fix "set wesnothd path" preference
This commit is contained in:
parent
1bdce5b937
commit
74fd5395a9
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue