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:
Peter Kümmel 2007-12-02 09:27:02 +00:00
parent cea3e4736f
commit 333a0cd1bb

View File

@ -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();