]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt/Menus.cpp
Fix broken Apple speller interface
[features.git] / src / frontends / qt / Menus.cpp
index f4a2358f3cf79f286bfce00bde57de191a16e7ee..c69ba5f0bcdc7dacf88c7740b861b0ecbae0b5fc 100644 (file)
@@ -883,7 +883,15 @@ void MenuDefinition::expandSpellingSuggestions(BufferView const * bv)
        case SpellChecker::WORD_OK: {
                        if (wl.word().empty())
                                break;
+                       SpellChecker * speller = theSpellChecker();
+                       if (speller && speller->canCheckParagraph())
+                               break;
                        LYXERR(Debug::GUI, "Valid Word.");
+               }
+               // FALLTHROUGH
+       case SpellChecker::LEARNED_WORD: {
+                       if (res == SpellChecker::LEARNED_WORD)
+                               LYXERR(Debug::GUI, "Learned Word.");
                        docstring const arg = wl.word() + " " + from_ascii(wl.lang()->lang());
                        add(MenuItem(MenuItem::Command, qt_("Remove from personal dictionary|r"),
                                        FuncRequest(LFUN_SPELLING_REMOVE, arg)));