From fb8ef40d1296046a25cbedda020ad7748cc4e542 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 21 Jul 2019 11:49:33 +0200 Subject: [PATCH] Show language switch item in menu also in monolingual documents. --- src/frontends/qt/Menus.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt/Menus.cpp b/src/frontends/qt/Menus.cpp index 04cf6bc445..f8979cfa09 100644 --- a/src/frontends/qt/Menus.cpp +++ b/src/frontends/qt/Menus.cpp @@ -905,8 +905,11 @@ void MenuDefinition::expandLanguageSelector(Buffer const * buf) std::set languages_buffer = buf->masterBuffer()->getLanguages(); - if (languages_buffer.size() < 2) + if (languages_buffer.size() < 2) { + add(MenuItem(MenuItem::Command, qt_("Switch Language...|L"), + FuncRequest(LFUN_DIALOG_SHOW, "character"))); return; + } std::set langs;