mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
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:
parent
3f5e92ce72
commit
0ac93cb524
@ -1489,6 +1489,7 @@ void Menus::updateMenu(QString const & name)
|
|||||||
theLyXFunc().setLyXView(qmenu->view);
|
theLyXFunc().setLyXView(qmenu->view);
|
||||||
|
|
||||||
if (!d->hasMenu(qmenu->name)) {
|
if (!d->hasMenu(qmenu->name)) {
|
||||||
|
qmenu->addAction(qt_("No action defined!"));
|
||||||
LYXERR(Debug::GUI, "\tWARNING: non existing menu: "
|
LYXERR(Debug::GUI, "\tWARNING: non existing menu: "
|
||||||
<< fromqstr(qmenu->name));
|
<< fromqstr(qmenu->name));
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user