diff --git a/ui/StatusQ/sandbox/spellchecker.cpp b/ui/StatusQ/sandbox/spellchecker.cpp index 0babe47ff3..d1625eeac0 100644 --- a/ui/StatusQ/sandbox/spellchecker.cpp +++ b/ui/StatusQ/sandbox/spellchecker.cpp @@ -1,6 +1,8 @@ #include "spellchecker.h" +#ifdef Q_OS_MACOS #include "hunspell.hxx" +#endif #include #include #include @@ -12,7 +14,9 @@ SpellChecker::SpellChecker(QObject *parent) : QObject(parent) +#ifdef Q_OS_MACOS , m_hunspell(nullptr) +#endif , m_userDict("userDict_") { @@ -36,7 +40,10 @@ bool SpellChecker::spell(const QString &word) bool SpellChecker::isInit() const { +#ifdef Q_OS_MACOS return !m_hunspell; +#endif + } void SpellChecker::initHunspell()