We don't want to write an empty string here. Keep it the default, unless

something else has been provided. (This is only an issue when no spell
checkers are detected.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37234 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-01-16 20:30:23 +00:00
parent dfb67984f2
commit c8766b2e42

View File

@ -1468,8 +1468,10 @@ PrefSpellchecker::PrefSpellchecker(GuiPreferences * form)
void PrefSpellchecker::apply(LyXRC & rc) const
{
rc.spellchecker = fromqstr(spellcheckerCB->itemData(
spellcheckerCB->currentIndex()).toString());
string const speller = fromqstr(spellcheckerCB->
itemData(spellcheckerCB->currentIndex()).toString());
if (!speller.empty())
rc.spellchecker = speller;
rc.spellchecker_alt_lang = fromqstr(altLanguageED->text());
rc.spellchecker_esc_chars = fromqstr(escapeCharactersED->text());
rc.spellchecker_accept_compound = compoundWordCB->isChecked();