mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +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 =
|
std::set<Language const *> languages =
|
||||||
buf->masterBuffer()->getLanguages();
|
buf->masterBuffer()->getLanguages();
|
||||||
|
|
||||||
if (languages.size() < 2) {
|
if (languages.size() < 2)
|
||||||
add(MenuItem(MenuItem::Command, qt_("Language ...|L"),
|
|
||||||
FuncRequest(LFUN_DIALOG_SHOW, "character")));
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
MenuItem item(MenuItem::Submenu, qt_("Language|L"));
|
MenuItem item(MenuItem::Submenu, qt_("Language|L"));
|
||||||
item.setSubmenu(MenuDefinition(qt_("Language")));
|
item.setSubmenu(MenuDefinition(qt_("Language")));
|
||||||
|
Loading…
Reference in New Issue
Block a user