Author: alink
Date: Fri Jul 4 02:35:13 2008
New Revision: 27709
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27709&view=rev
Log:
Fix random downloaded add-on (and possibly other upload action) when using
filter in the add-on management dialog. Bug reported by Turin.
Modified:
trunk/src/game.cpp
Modified: trunk/src/game.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=27709&r1=27708&r2=27709&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Fri Jul 4 02:35:13 2008
@@ -1437,7 +1437,9 @@
_("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;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits