From 4def0c2a5277384bb2031fab4947a7ecf68c57dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 28 Feb 2010 10:23:06 +0000 Subject: [PATCH] * Menus.cpp: add accelerator to "More Languages ..." git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33591 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/Menus.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index 53cb2d5dc3..b9d9353ef2 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -788,7 +788,10 @@ void MenuDefinition::expandLanguageSelector(Buffer const * buf) MenuItem item(MenuItem::Submenu, qt_("Language|L")); item.setSubmenu(MenuDefinition(qt_("Language"))); + QString morelangs = qt_("More Languages ...|M"); QStringList accelerators; + if (morelangs.contains('|')) + accelerators.append(morelangs.section('|', -1)); std::set::const_iterator const begin = languages.begin(); for (std::set::const_iterator cit = begin; cit != languages.end(); ++cit) { @@ -825,7 +828,7 @@ void MenuDefinition::expandLanguageSelector(Buffer const * buf) item.submenu().addWithStatusCheck(w); } item.submenu().add(MenuItem(MenuItem::Separator)); - item.submenu().add(MenuItem(MenuItem::Command, qt_("More Languages ..."), + item.submenu().add(MenuItem(MenuItem::Command, morelangs, FuncRequest(LFUN_DIALOG_SHOW, "character"))); add(item); }