diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index 3e4ada8e29..ef322ba60d 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -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()));