Add dummy context menu when there is non defined.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23581 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-03-09 11:39:00 +00:00
parent 3f5e92ce72
commit 0ac93cb524

View File

@ -1489,6 +1489,7 @@ void Menus::updateMenu(QString const & name)
theLyXFunc().setLyXView(qmenu->view);
if (!d->hasMenu(qmenu->name)) {
qmenu->addAction(qt_("No action defined!"));
LYXERR(Debug::GUI, "\tWARNING: non existing menu: "
<< fromqstr(qmenu->name));
return;