From b6340b83c497c1c55349f5d5fb53cfded488824f Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Tue, 8 Feb 2011 14:48:46 +0000 Subject: [PATCH] #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 --- src/frontends/qt4/GuiPrefs.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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()));