From 68eb62ca34fb936efa5bb35cddbf89f61e6912e2 Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Tue, 30 Jul 2019 12:17:51 +1000 Subject: Hide spellcheck dialog if Aspell is missing Hide warnings emitted if Aspell/Potrace missing --- src/ui/dialog/dialog-manager.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/ui/dialog/dialog-manager.cpp') diff --git a/src/ui/dialog/dialog-manager.cpp b/src/ui/dialog/dialog-manager.cpp index 66a682de6..0bcf7727c 100644 --- a/src/ui/dialog/dialog-manager.cpp +++ b/src/ui/dialog/dialog-manager.cpp @@ -52,7 +52,11 @@ #include "ui/dialog/object-properties.h" #include "ui/dialog/objects.h" #include "ui/dialog/selectorsdialog.h" -#include "ui/dialog/spellcheck.h" + +#if HAVE_ASPELL +# include "ui/dialog/spellcheck.h" +#endif + #include "ui/dialog/styledialog.h" #include "ui/dialog/svg-fonts-dialog.h" #include "ui/dialog/text-edit.h" @@ -136,7 +140,11 @@ DialogManager::DialogManager() { registerFactory("UndoHistory", &create); registerFactory("InputDevices", &create); registerFactory("TextFont", &create); + +#if HAVE_ASPELL registerFactory("SpellCheck", &create); +#endif + registerFactory("Export", &create); registerFactory("CloneTiler", &create); registerFactory("XmlTree", &create); @@ -177,7 +185,11 @@ DialogManager::DialogManager() { registerFactory("UndoHistory", &create); registerFactory("InputDevices", &create); registerFactory("TextFont", &create); + +#if HAVE_ASPELL registerFactory("SpellCheck", &create); +#endif + registerFactory("Export", &create); registerFactory("CloneTiler", &create); registerFactory("XmlTree", &create); -- cgit v1.2.3