From b03a5823bee7115a8dcd6b37ebbc94ea08198993 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 12 Oct 2008 04:12:37 +0000 Subject: [PATCH] We don't always want that, just with custom insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26855 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/Menus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index d730710ec6..751c2e4a78 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -860,7 +860,8 @@ void MenuDefinition::expandFlexInsert(Buffer const * buf, string s) addedOne = true; } } - if (!addedOne) + // FIXME This is a little clunky. + if (!addedOne && s == "custom") add(MenuItem(MenuItem::Command, qt_("No custom insets defined!"), FuncRequest(LFUN_NOACTION)));