]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Menus.cpp
Consider possibility of empty tooltip
[lyx.git] / src / frontends / qt4 / Menus.cpp
index 81ce5764ae7e839c281452da9883e378cbb20fd4..546fd0c2d13a620b0d856a6088553c7b0b128c2c 100644 (file)
@@ -1547,8 +1547,8 @@ void MenuDefinition::expandCiteStyles(BufferView const * bv)
        docstring const & after = citinset->getParam("after");
 
        size_t const n = cmd.size();
-       bool const force = cmd[0] == 'C';
-       bool const full = cmd[n] == '*';
+       bool const force = isUpperCase(cmd[0]);
+       bool const star = cmd[n] == '*';
 
        vector<docstring> const keys = getVectorFromString(key);
 
@@ -1565,7 +1565,7 @@ void MenuDefinition::expandCiteStyles(BufferView const * bv)
                docstring label = *cit;
                CitationStyle cs = citeStyleList[ii - 1];
                cs.forceUpperCase &= force;
-               cs.fullAuthorList &= full;
+               cs.hasStarredVersion &= star;
                addWithStatusCheck(MenuItem(MenuItem::Command, toqstr(label),
                                    FuncRequest(LFUN_INSET_MODIFY,
                                                "changetype " + from_utf8(citationStyleToString(cs)))));