Project

General

Profile

Actions

Bug #14381

open

Ensure WPushButton popup menu is deleted with the button.

Added by Romain Mardulyn 7 days ago. Updated 6 days ago.

Status:
Implemented @Emweb
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.

Actions #1

Updated by Romain Mardulyn 7 days ago

  • Target version set to 4.12.6
Actions #2

Updated by Romain Mardulyn 7 days ago

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

Updated by Marnik Roosen 6 days ago

  • Assignee set to Marnik Roosen
Actions #4

Updated by Romain Mardulyn 6 days ago

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

Also available in: Atom PDF