From: Richard Heck Date: Mon, 8 Mar 2010 13:22:56 +0000 (+0000) Subject: Spellcheck related bugfix from John McCabe-Dansted: X-Git-Tag: 2.0.0~3870 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=483c891705897ede99c69e7b75a1527c2f54894d;p=features.git 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 --- diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index d75184f9f7..bc4b5b74ed 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -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 }