Notabilis has proposed merging
lp:~widelands-dev/widelands/bug-1806230-enable-ok-button into lp:widelands.
Commit message:
Enabling OK button in map options of editor when tags are changed.
Requested reviews:
Widelands Developers (widelands-dev)
Related bugs:
Bug #1806230 in widelands: "Editor: Map tags not changeable"
https://bugs.launchpad.net/widelands/+bug/1806230
For more details, see:
https://code.launchpad.net/~widelands-dev/widelands/bug-1806230-enable-ok-button/+merge/361163
Adding the missing linkage between changes to the tabs and enabling the OK
button in the map option menu of the editor.
--
Your team Widelands Developers is requested to review the proposed merge of
lp:~widelands-dev/widelands/bug-1806230-enable-ok-button into lp:widelands.
=== modified file 'src/editor/ui_menus/main_menu_map_options.cc'
--- src/editor/ui_menus/main_menu_map_options.cc 2018-12-13 07:24:01 +
+++ src/editor/ui_menus/main_menu_map_options.cc 2018-12-19 21:39:17 +
@@ -129,6 +129,7 @@
// TODO(GunChleoc): We need team images in the listselect here,
// so map editors will be able to delete entries.
// This is waiting for the new RT renderer.
+ // TODO(Notabilis): Add onChanged-code below after this is added
teams_list_.add("Not implemented yet.", "", nullptr, false);
unsigned int nr_players = static_cast(eia().egbase().map().get_nrplayers());
@@ -148,6 +149,9 @@
author_.changed.connect(boost::bind(::changed, this));
descr_->changed.connect(boost::bind(::changed, this));
hint_->changed.connect(boost::bind(::changed, this));
+ for (const auto& tag : tags_checkboxes_) {
+ tag.second->changed.connect(boost::bind(::changed, this));
+ }
ok_.sigclicked.connect(boost::bind(::clicked_ok, boost::ref(*this)));
cancel_.sigclicked.connect(boost::bind(::clicked_cancel, boost::ref(*this)));
___
Mailing list: https://launchpad.net/~widelands-dev
Post to : widelands-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~widelands-dev
More help : https://help.launchpad.net/ListHelp