mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
* 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:
parent
c224f085ce
commit
ea6b96dfc5
@ -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")));
|
||||
|
Loading…
Reference in New Issue
Block a user