From bf93b9756ea2706bd016dad4c61172866a52cf88 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 20 Apr 2015 18:10:25 +0200 Subject: [PATCH] Do not show obsoleted flex insets in the menu. --- src/frontends/qt4/Menus.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index c974352dd8..50b23c2413 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -1204,6 +1204,8 @@ void MenuDefinition::expandFlexInsert( TextClass::InsetLayouts::const_iterator end = insetLayouts.end(); for (; cit != end; ++cit) { if (cit->second.lyxtype() == type) { + if (!cit->second.obsoleted_by().empty()) + continue; docstring label = cit->first; // we remove the "Flex:" prefix, if it is present if (prefixIs(label, from_ascii("Flex:"))) -- 2.39.2