mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 22:36:34 +00:00
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:
parent
a0fa5d2ad6
commit
77f8378013
@ -1437,7 +1437,9 @@ void game_controller::download_addons(std::string host)
|
|||||||
_("Filter: "), options, options_to_filter, 0, addon_dialog, 300);
|
_("Filter: "), options, options_to_filter, 0, addon_dialog, 300);
|
||||||
addon_dialog.set_textbox(filter);
|
addon_dialog.set_textbox(filter);
|
||||||
|
|
||||||
const int index = addon_dialog.show();
|
int index = addon_dialog.show();
|
||||||
|
index = filter->get_index(index);
|
||||||
|
|
||||||
if(index < 0) {
|
if(index < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user