Project

General

Profile

Actions

Bug #10971

closed

Free floating WPopupMenu when menu items are deleted in event handler

Added by Martin Melcher over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/25/2022
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I am using a WPopupMenu structure with multiple levels (some items are WPopupMenus which also contains WPopupMenus, ..)
The WPopupMenu is attached to a WPushButton.

The event handler of the selected WMenuItem may trigger a series of events in which the selected WMenuItem or WPopupMenu (sub-menu) is deleted.
This causes free floating / detached WPopupMenus that remain visible even if the parent container or WPushButton it's attached to are deleted.

I assume this might be because the WPopupMenu object is deleted before it can properly be hidden and removed from the rendered web page.

Is there any workaround?

Regards,

Martin

Actions #1

Updated by Roel Standaert over 1 year ago

  • Target version set to 4.10.0
Actions #2

Updated by Martin Melcher over 1 year ago

Hello,
the problem disappeared when upgrading to Wt-4.8.1 (from Wt-4.4). This can be closed.
Martin

Actions #3

Updated by Roel Standaert over 1 year ago

  • Status changed from New to Closed
  • Target version deleted (4.10.0)

That's good to hear. Closing.

Actions

Also available in: Atom PDF