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/contextmenu.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/contextmenu.cpp') diff --git a/src/ui/contextmenu.cpp b/src/ui/contextmenu.cpp index fb3cb7b29..b33653bfd 100644 --- a/src/ui/contextmenu.cpp +++ b/src/ui/contextmenu.cpp @@ -929,11 +929,13 @@ void ContextMenu::MakeTextMenu () mi->show(); insert(*mi,positionOfLastDialog++); +#if HAVE_ASPELL /* Spellcheck dialog */ mi = Gtk::manage(new Gtk::MenuItem(_("Check Spellin_g..."), true)); mi->signal_activate().connect(sigc::mem_fun(*this, &ContextMenu::SpellcheckSettings)); mi->show(); insert(*mi,positionOfLastDialog++); +#endif } void ContextMenu::TextSettings () @@ -947,11 +949,13 @@ void ContextMenu::TextSettings () void ContextMenu::SpellcheckSettings () { +#if HAVE_ASPELL if (_desktop->selection->isEmpty()) { _desktop->selection->set(_item); } _desktop->_dlg_mgr->showDialog("SpellCheck"); +#endif } void ContextMenu::ShiftIcons() -- cgit v1.2.3