Skip to content

Commit

Permalink
Fix "set wesnothd path" preference
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Apr 4, 2016
1 parent 1bdce5b commit 74fd539
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/preferences_display.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 74fd539

Please sign in to comment.