mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
* 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:
parent
1f97351716
commit
a15a58b51c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user