]> git.lyx.org Git - lyx.git/commitdiff
Properly disable function
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 27 Aug 2020 08:59:15 +0000 (10:59 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 27 Aug 2020 08:59:15 +0000 (10:59 +0200)
lib/ui/stdcontext.inc
src/insets/InsetCitation.cpp

index c3156e41ef465c29316c74a520c2cfdb5598cd33..fe6f269973276b246c616686ba2f1b0f1f7886f4 100644 (file)
@@ -128,7 +128,7 @@ Menuset
                CiteStyles
                Separator
                Item "Settings...|S" "inset-settings"
-               Item "Try to Open Citation Content...|O" "inset-edit"
+               OptItem "Try to Open Citation Content...|O" "inset-edit"
        End
 
 
index df722aaf7f9566f8ff6fbb8b74266f86491dfba4..0c4b3fe68ce3cd3d947b1098efda39f1d2227973 100644 (file)
@@ -193,10 +193,8 @@ bool InsetCitation::openCitationPossible() const
                        return true;
        }
 
-       // last resort: is external script available?
-       if (!lyxrc.citation_search_view.empty())
-               return true;
-       return false;
+       // last resort: is external script activated?
+       return lyxrc.citation_search;
 }
 
 void InsetCitation::openCitation()