mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-08 18:19:42 +00:00
* src/intl.C (InitKeyMapper): reset kbmap file names if the files
could not be read (bug 2604). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13971 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a719e89ffe
commit
7bc451a1ee
10
src/intl.C
10
src/intl.C
@ -77,6 +77,12 @@ void Intl::initKeyMapper(bool on)
|
||||
{
|
||||
lyxerr[Debug::INIT] << "Initializing key mappings..." << endl;
|
||||
|
||||
if (trans.setPrimary(prim_lang) == -1)
|
||||
prim_lang.erase();
|
||||
if (trans.setSecondary(sec_lang) == -1)
|
||||
sec_lang.erase();
|
||||
trans.setCharset(lyxrc.font_norm);
|
||||
|
||||
if (prim_lang.empty() && sec_lang.empty())
|
||||
keymapon = false;
|
||||
else
|
||||
@ -86,8 +92,4 @@ void Intl::initKeyMapper(bool on)
|
||||
|
||||
if (keymapon)
|
||||
keyMapPrim();
|
||||
|
||||
trans.setPrimary(prim_lang);
|
||||
trans.setSecondary(sec_lang);
|
||||
trans.setCharset(lyxrc.font_norm);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user