* Menus.cpp:

- exclude spaces from accelerator construction.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33556 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-02-24 14:21:30 +00:00
parent 1f97351716
commit a15a58b51c

View File

@ -784,6 +784,8 @@ void MenuDefinition::expandLanguageSelector(Buffer const * buf)
QString label = qt_((*cit)->display());
// try to add an accelerator
for (int i = 0; i < label.size(); ++i) {
if (label[i].isSpace())
continue;
QString const ch = QString(label[i]);
if (!accelerators.contains(ch, Qt::CaseInsensitive)) {
label = label + toqstr("|") + ch;