From c86d1d63dfea5a1c44227b536c67c09f591db592 Mon Sep 17 00:00:00 2001 From: Khushboo Mehta Date: Tue, 5 Oct 2021 13:01:09 +0200 Subject: [PATCH] fix: Sandbox doesn't build on Linux machines fixes #423 --- ui/StatusQ/sandbox/spellchecker.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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()