]> git.lyx.org Git - features.git/commitdiff
* Menus.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Wed, 24 Feb 2010 14:21:30 +0000 (14:21 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Wed, 24 Feb 2010 14:21:30 +0000 (14:21 +0000)
- exclude spaces from accelerator construction.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33556 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/Menus.cpp

index 542a38423074be59538a45f9559a435b7a949018..8088daa603127d5aa814fc455d00b1246a0dedb2 100644 (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;