Project

General

Profile

Bug #10971

Free floating WPopupMenu when menu items are deleted in event handler

Added by Martin Melcher 2 months ago. Updated 16 days 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

#1

Updated by Roel Standaert about 2 months ago

  • Target version set to 4.10.0
#2

Updated by Martin Melcher 25 days ago

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

#3

Updated by Roel Standaert 16 days ago

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

That's good to hear. Closing.

Also available in: Atom PDF