mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
fix memory leak. addMenu does not take ownership, a Qt bug?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21905 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cea3e4736f
commit
333a0cd1bb
@ -29,7 +29,7 @@ namespace frontend {
|
||||
|
||||
GuiPopupMenu::GuiPopupMenu(GuiMenubar * owner, MenuItem const & mi,
|
||||
bool topLevelMenu)
|
||||
: owner_(owner)
|
||||
: QMenu(owner->menuBar()), owner_(owner)
|
||||
{
|
||||
name_ = mi.submenuname();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user