Only load the `EnableSpellCheck` setting for KDE4 users.
authorBernhard Scheirle <bernhard+git@scheirle.de>
Fri, 19 Aug 2016 06:06:40 +0000 (08:06 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 14 Sep 2016 21:08:43 +0000 (23:08 +0200)
Others either have no spell checking at all or use KF5 Sonnet with
its own settings / settings page.

Resolves GH-242.

src/qtui/inputwidget.cpp

index a664b6a..801ac96 100644 (file)
@@ -101,7 +101,7 @@ InputWidget::InputWidget(QWidget *parent)
 
     UiSettings s("InputWidget");
 
-#ifdef HAVE_KDE
+#ifdef HAVE_KDE4
     s.notify("EnableSpellCheck", this, SLOT(setEnableSpellCheck(QVariant)));
     setEnableSpellCheck(s.value("EnableSpellCheck", false));
 #endif