Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initialize wml menu item handlers when they are set, not in ctor
this commit causes wml menu items to have their events registered not during construction but only when "init_handler" is called. it refactors the wmi_container object to do this when it constructs new items via the [set_menu_item] path. this is necessary because the items might be constructed before the event queue even exists, and we want them to be able to persist and be reactivated when a new campaign scenario starts. more testing is necessary to determine if all code paths, including carryover and reloading, are still working after this commit, and the earlier commit 6fc1ac1 See also discussion of bug #23115.
- Loading branch information
Showing
7 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters