Project

General

Profile

Actions

Bug #14381

closed
RM RM

Ensure WPushButton popup menu is deleted with the button.

Bug #14381: Ensure WPushButton popup menu is deleted with the button.

Added by Romain Mardulyn 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
03/09/2026
Due date:
% Done:

0%

Estimated time:

Description

In Wt, WPushButton.setMenu(std::unique_ptr menu) fully owns the popupmenu. The destructor of the button automatically destructs the popup menu as well, which invokes wApp->removeGlobalWidget(this);
In JWt there are no destructors. Removing the button doesn't automatically remove the popup menu, so it remains in the domroot.

RM Updated by Romain Mardulyn 6 months ago Actions #1

  • Target version set to 4.12.6

RM Updated by Romain Mardulyn 6 months ago Actions #2

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)

MR Updated by Marnik Roosen 6 months ago Actions #3

  • Assignee set to Marnik Roosen

RM Updated by Romain Mardulyn 6 months ago Actions #4

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Marnik Roosen to Romain Mardulyn

RM Updated by Romain Mardulyn 6 months ago Actions #5

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom