Actions not updated if only in menu
Original Reporter info from Mantis: michael @mvancanneyt
-
Reporter name: Michael Van Canneyt
Original Reporter info from Mantis: michael @mvancanneyt
- Reporter name: Michael Van Canneyt
Description:
When an action is attached only to a menu item, it is not updated
when the menu item is made visible. Actions that are attached to menu items are not updated when a menu is popped up.
Steps to reproduce:
Compile and run attached sample program.
Note that the checkbox is not checked, and hence the action should be disabled.
- Click 'Test' menu: 'Test action' menu item should be enabled.
- Click it.
The action is NOT executed, because update handler is executed first
and it disables the action.
- Click 'test' menu again: 'Test action' menu item is now disabled.
The 'OnUpdate' handler should be executed whenever the associated menu item becomes visible.
Mantis conversion info:
- Mantis ID: 12776
- OS: Linux
- Platform: Linux
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 18006 (#c4c8f0c8)
- Monitored by: » kayahr (Klaus Reimer)
- Target version: 1.0.0
- LazTarget: 1.0