Spellcheck related bugfix from John McCabe-Dansted:

PrefSpellchecker disables the "Spellchecker Engine:" selector if
theSpellChecker() reports that no spell checking engine is selected.
This means that if we have not already selected a spell checking
engine we cannot select one now. I think this problem can be
reproduced by first compiling and running LyX without spellchecking
support and then compiling and running LyX with spellchecking support.

In any case it is clear that we should be able to select a
spellchecking engine if one is available, so I propose the attached
patch. This patch fixed the problem on my machine.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33669 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-08 13:22:56 +00:00
parent 60034997d9
commit 483c891705

View File

@ -1321,7 +1321,7 @@ PrefSpellchecker::PrefSpellchecker(GuiPreferences * form)
spellcheckerCB->addItem(qt_("hunspell"), QString("hunspell"));
#endif
if (theSpellChecker()) {
#if defined(USE_ASPELL) || defined(USE_ENCHANT) || defined(USE_HUNSPELL)
connect(spellcheckerCB, SIGNAL(currentIndexChanged(int)),
this, SIGNAL(changed()));
connect(altLanguageED, SIGNAL(textChanged(QString)),
@ -1334,14 +1334,14 @@ PrefSpellchecker::PrefSpellchecker(GuiPreferences * form)
this, SIGNAL(changed()));
connect(spellcheckNotesCB, SIGNAL(clicked()),
this, SIGNAL(changed()));
} else {
#else
spellcheckerCB->setEnabled(false);
altLanguageED->setEnabled(false);
escapeCharactersED->setEnabled(false);
compoundWordCB->setEnabled(false);
spellcheckContinuouslyCB->setEnabled(false);
spellcheckNotesCB->setEnabled(false);
}
#endif
}