* 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:
Jean-Marc Lasgouttes 2006-05-31 10:34:30 +00:00
parent a719e89ffe
commit 7bc451a1ee

View File

@ -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);
}