* Menus.cpp: hide Language item if only one language is used.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33565 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-02-25 12:46:16 +00:00
parent c224f085ce
commit ea6b96dfc5

View File

@ -769,11 +769,8 @@ void MenuDefinition::expandLanguageSelector(Buffer const * buf)
std::set<Language const *> languages =
buf->masterBuffer()->getLanguages();
if (languages.size() < 2) {
add(MenuItem(MenuItem::Command, qt_("Language ...|L"),
FuncRequest(LFUN_DIALOG_SHOW, "character")));
if (languages.size() < 2)
return;
}
MenuItem item(MenuItem::Submenu, qt_("Language|L"));
item.setSubmenu(MenuDefinition(qt_("Language")));