Fix random downloaded add-on (and possibly other upload action)...

...when using filter in the add-on management dialog. Bug reported by
Turin.
This commit is contained in:
Ali El Gariani 2008-07-04 00:35:13 +00:00
parent a0fa5d2ad6
commit 77f8378013

View file

@ -1437,7 +1437,9 @@ void game_controller::download_addons(std::string host)
_("Filter: "), options, options_to_filter, 0, addon_dialog, 300);
addon_dialog.set_textbox(filter);
const int index = addon_dialog.show();
int index = addon_dialog.show();
index = filter->get_index(index);
if(index < 0) {
return;
}