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/desktop/menubar.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/ui/desktop/menubar.cpp') diff --git a/src/ui/desktop/menubar.cpp b/src/ui/desktop/menubar.cpp index 9340c682a..39496afad 100644 --- a/src/ui/desktop/menubar.cpp +++ b/src/ui/desktop/menubar.cpp @@ -473,7 +473,14 @@ build_menu(Gtk::MenuShell* menu, Inkscape::XML::Node* xml, Inkscape::UI::View::V menu->append(*menuitem); } } - } else { + } else if (true +#if !HAVE_POTRACE + && !strcmp(verb_name.c_str(), "SelectionTrace") +#endif +#if !HAVE_ASPELL + && !strcmp(verb_name.c_str(), "DialogSpellcheck") +#endif + ) { std::cerr << "build_menu: no verb with id: " << verb_name << std::endl; } } -- cgit v1.2.3