Community
Participate
Working Groups
If one uses a MenuListener to hide a sub menu within a menu, the sub menu never gets enabled again, if it has been disabled once. The attached patch illustrates this problem.
Created attachment 107334 [details] Snippet to reproduce the bug
Created attachment 107440 [details] Patch that fixed it. In all xxxMenuItemLCA#preserveValues the menuItem.getEnabled() is replaced with menuItem.isEnabled().
Right, the bug was caused by the inconsistent use of isEnabled() and getEnabled() when preserving and writing properties. I revised this and found no reason for using isEnabled() at all (which also takes parent menus into account). Could be a leftover from qx-0.6 times. Changed write methods so that getEnabled() is now used consistently. Fixed in CVS.