#7170 Disable hunspell dict path in prefs when hunspell is not compiled in

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37564 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2011-02-08 14:48:46 +00:00
parent e1a685fcb1
commit b6340b83c4

View File

@ -1303,9 +1303,14 @@ PrefPaths::PrefPaths(GuiPreferences * form)
connect(tempDirED, SIGNAL(textChanged(QString)),
this, SIGNAL(changed()));
#if defined(USE_HUNSPELL)
connect(hunspellDirPB, SIGNAL(clicked()), this, SLOT(selectHunspelldir()));
connect(hunspellDirED, SIGNAL(textChanged(QString)),
this, SIGNAL(changed()));
#else
hunspellDirPB->setEnabled(false);
hunspellDirED->setEnabled(false);
#endif
connect(pathPrefixED, SIGNAL(textChanged(QString)),
this, SIGNAL(changed()));