Project

General

Profile

Bug #7009

WPopupMenu destruction when inside a WMenuItem

Added by Maximilian Kleinert over 3 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/18/2019
Due date:
% Done:

0%

Estimated time:

Description

If a WPopupMenu is attached to a WMenuItem and then the WMenuItem is removed from a callback of the popup the following error occurs:

[error] "WContainerWidget: removeWidget(): widget not in container"

It works fine when a WPushButton is used.


Files

main.cpp (1.43 KB) main.cpp Maximilian Kleinert, 04/18/2019 10:19 AM
#1

Updated by Achim Reutelsterz almost 2 years ago

I'm facing the exact same behavior.
Besides that I noticed that with Wt4.5 the WPopupMenu stays open and will not close automatically.
With Wt 4.0.5 the WPopupMenu closes and will not stay open.

Also available in: Atom PDF