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/verbs.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/verbs.cpp') diff --git a/src/verbs.cpp b/src/verbs.cpp index 065b7e10c..dae0fea3b 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -23,10 +23,6 @@ * Released under GNU GPL v2+, read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -# include "config.h" // only include where actually required! -#endif - #include #include @@ -83,7 +79,6 @@ #include "ui/dialog/new-from-template.h" #include "ui/dialog/object-properties.h" #include "ui/dialog/save-template-dialog.h" -#include "ui/dialog/spellcheck.h" #include "ui/dialog/swatches.h" #include "ui/dialog/symbols.h" #include "ui/icon-names.h" @@ -613,7 +608,6 @@ SPAction *Verb::get_action(Inkscape::ActionContext const & context) } else { action = this->make_action(context); - // if (action == NULL) printf("Hmm, NULL in %s\n", _name); if (action == nullptr) printf("Hmm, NULL in %s\n", _name); if (!_default_sensitive) { sp_action_set_sensitive(action, 0); @@ -808,6 +802,10 @@ Verb *Verb::getbyid(gchar const *id, bool verbose) && strcmp(id, "ToolPaintBucket") != 0 && strcmp(id, "SelectionTrace") != 0 && strcmp(id, "PaintBucketPrefs") != 0 + && strcmp(id, "TutorialsTracing") != 0 +#endif +#if !HAVE_ASPELL + && strcmp(id, "DialogSpellcheck") != 0 #endif ) { if (verbose) -- cgit v1.2.3