]> git.lyx.org Git - features.git/commitdiff
#7170 Disable hunspell dict path in prefs when hunspell is not compiled in
authorStephan Witt <switt@lyx.org>
Tue, 8 Feb 2011 14:48:46 +0000 (14:48 +0000)
committerStephan Witt <switt@lyx.org>
Tue, 8 Feb 2011 14:48:46 +0000 (14:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37564 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiPrefs.cpp

index 3e4ada8e29401df07347d9342ba9c0120e1e44da..ef322ba60da0a9c562c19989de75ce03e8ce1908 100644 (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()));