]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Menus.cpp
#7452, no spellcheck menu needed when no text is below cursor
[lyx.git] / src / frontends / qt4 / Menus.cpp
index 4ed692b7a8c55a0aa87c2476f3fc8ed0b2059730..e150b08758af7676f79bc8a864511cffabbd5a4f 100644 (file)
@@ -661,7 +661,7 @@ bool MenuDefinition::hasFunc(FuncRequest const & func) const
 void MenuDefinition::catSub(docstring const & name)
 {
        add(MenuItem(MenuItem::Submenu,
-                               qt_("&More..."), toqstr(name), QString(), false));
+                    qt_("More...|M"), toqstr(name), QString(), false));
 }
 
 void MenuDefinition::cat(MenuDefinition const & other)
@@ -764,9 +764,11 @@ void MenuDefinition::expandSpellingSuggestions(BufferView const * bv)
 {
        if (!bv)
                return;
+       Cursor const & cur = bv->cursor();
+       if (!cur.inTexted())
+               return;
        WordLangTuple wl;
        docstring_list suggestions;
-       Cursor const & cur = bv->cursor();
        Paragraph const & par = cur.paragraph();
        pos_type from = cur.pos();
        pos_type to = from;