[LyX/master] Properly disable function
Juergen Spitzmueller
spitz at lyx.org
Thu Aug 27 08:33:31 UTC 2020
commit c5c3323f3254e052f4c201da73b2c4a7d48aaf90
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Thu Aug 27 10:59:15 2020 +0200
Properly disable function
---
lib/ui/stdcontext.inc | 2 +-
src/insets/InsetCitation.cpp | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/lib/ui/stdcontext.inc b/lib/ui/stdcontext.inc
index c3156e4..fe6f269 100644
--- a/lib/ui/stdcontext.inc
+++ b/lib/ui/stdcontext.inc
@@ -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
diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp
index df722aa..0c4b3fe 100644
--- a/src/insets/InsetCitation.cpp
+++ b/src/insets/InsetCitation.cpp
@@ -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()
More information about the lyx-cvs
mailing list