Author: alink
Date: Fri Jul 4 04:08:27 2008
New Revision: 27711
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27711&view=rev
Log:
Fix a bug with the publish/remove add-on functions in the add-ons manager:
Always missing the last row, so new creator can't publish and aa already
published one can't be removed.
Modified:
trunk/src/game.cpp
Modified: trunk/src/game.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=27711&r1=27710&r2=27711&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Fri Jul 4 04:08:27 2008
@@ -1317,6 +1317,9 @@
heading << HEADING_PREFIX << sep << _("Name") << sep <<
_("Version") << sep
<< _("Author") << sep << _("Type") << sep <<
_("Downloads") << sep << _("Size");
+ options.push_back(heading.str());
+ options_to_filter.push_back(heading.str());
+
const config::child_list& cmps =
campaigns_cfg->get_children("campaign");
const std::vector< std::string >& publish_options =
available_addons();
@@ -1400,8 +1403,6 @@
options_to_filter.push_back(text_columns);
}
- options.push_back(heading.str());
-
std::string pub_option_text, del_option_text;
for(std::vector< std::string >::const_iterator j =
publish_options.begin(); j != publish_options.end(); ++j) {
@@ -1434,7 +1435,7 @@
addon_dialog.set_menu(addon_menu);
gui::filter_textbox* filter = new
gui::filter_textbox(disp().video(),
- _("Filter: "), options, options_to_filter, 0,
addon_dialog, 300);
+ _("Filter: "), options, options_to_filter, 1,
addon_dialog, 300);
addon_dialog.set_textbox(filter);
int index = addon_dialog.show();
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits