Bug 560294 - [win32] Menu is still visible after dispose
Summary: [win32] Menu is still visible after dispose
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.14   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-18 15:02 EST by Rolf Theunissen CLA
Modified: 2020-02-18 15:02 EST (History)
0 users

See Also:


Attachments
Example to reproduce (1.51 KB, text/plain)
2020-02-18 15:02 EST, Rolf Theunissen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Theunissen CLA 2020-02-18 15:02:06 EST
Created attachment 281856 [details]
Example to reproduce

When a submenu is disposed, it remains visible after it is disposed. That is, if the menu item is selected again, the menu is shown. It is expected that the menu is gone after dispose.

In the attached example, click 'Dispose SubMenu' and reopen the menu. Disposing the containing MenuItem does remove the menu.

Calling 'if (cascade != null) cascade.setMenu (null, false);' in Menu#releaseParent() (as GTK does) removes the menu. Though a similar call exists in Menu#destroyWidget(). Apparently this does not do the job correctly.