]> git.lyx.org Git - features.git/commitdiff
We don't always want that, just with custom insets.
authorRichard Heck <rgheck@comcast.net>
Sun, 12 Oct 2008 04:12:37 +0000 (04:12 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 12 Oct 2008 04:12:37 +0000 (04:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26855 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/Menus.cpp

index d730710ec6bade67386dfb9b6b7c1f348aa1f8f3..751c2e4a78a221275e1b895b361741844c46ad10 100644 (file)
@@ -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)));