You break it, you pay for it. Fix submenus again. Lars please check menus still work for you.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5295 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-09-13 00:04:22 +00:00
parent 01439bfc60
commit b77165653d
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-09-13 John Levon <levon@movementarian.org>
* Menubar_pimpl.C:
* QLPopupMenu.C: fix submenus again
2002-09-12 John Levon <levon@movementarian.org>
* qscreen.h:

View File

@ -48,8 +48,6 @@ Menubar::Pimpl::Pimpl(LyXView * view, MenuBackend const & mbe)
pair<int, QLPopupMenu *> menu =
createMenu(owner_->menuBar(), &(*m), this, true);
name_map_[m->submenuname()] = menu.second;
QObject::connect(menu.second, SIGNAL(activated(int)),
owner_, SLOT(activated(int)));
}
}

View File

@ -56,6 +56,8 @@ QLPopupMenu::QLPopupMenu(Menubar::Pimpl * owner, string const & name, bool tople
{
if (toplevel)
connect(this, SIGNAL(aboutToShow()), this, SLOT(showing()));
connect(this, SIGNAL(activated(int)),
owner_->view(), SLOT(activated(int)));
}