| Ticket UUID: | 1723059 | |||
| Title: | entryconfigure destroys submenus | |||
| Type: | Bug | Version: | obsolete: 8.5a6 | |
| Submitter: | kaitzschu | Created on: | 2007-05-21 21:29:58 | |
| Subsystem: | 10. Generic Menus | Assigned To: | jan.nijtmans | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2026-10-24 10:14:56 | |
| Resolution: | Fixed | Closed By: | nemethi | |
| Closed on: | 2026-10-24 10:14:56 | |||
| Description: |
When creating a toplevel menubar (. configure -menu ...) and assigning it the same cascade submenu as it has and then replacing submenu with another the previous submenu is destroyed! Bad explanation, attached script demonstrates behaviour. | |||
| User Comments: |
nemethi (claiming to be Csaba Nemethi) added on 2026-10-24 10:14:56:
Serhiy, many thanks for the fix! Merged into main, core-9-0-branch, and core-8-6-branch by commits [5f1de6fb], [a3f03a58], and [edff8f53]. The relevant test is menu-47.1. serhiy.storchaka added on 2026-09-23 07:36:25: The entry of a cloned menu points to a clone of the cascade menu, not to the cascade menu itself. When the entry was configured with the menu which it already had, ConfigureMenuCloneEntries() passed -menu to the clones anyway, so their entries pointed to the cascade menu itself, and the next change of the entry deleted it as a clone. Fixed on branch menu-clone-cascade-destroy in [ef4c358706]: -menu is not passed to the clones if the cascade menu is not changed. Test menu-42.1. kaitzschu added on 2007-05-22 04:29:58: File Added - 230044: menutst.tk | |||
Attachments:
- menutst.tk [download] added by kaitzschu on 2007-05-22 04:29:58. [details]
