From 8deb05f7a7106e43138945dfc8b1f53c436c2a2e Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 19 Feb 2023 12:15:45 +0100 Subject: [PATCH] Mark empty bib(la)tex insets (i.e., with no databases defined) (#12668) --- src/insets/InsetBibtex.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index a9c0ff966b..55ba0aa873 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -176,8 +176,12 @@ bool InsetBibtex::usingBiblatex() const docstring InsetBibtex::screenLabel() const { - return usingBiblatex() ? _("Biblatex Generated Bibliography") + docstring res; + if (getParam("bibfiles").empty()) + res = _("EMPTY: "); + res += usingBiblatex() ? _("Biblatex Generated Bibliography") : _("BibTeX Generated Bibliography"); + return res; } @@ -188,7 +192,7 @@ docstring InsetBibtex::toolTip(BufferView const & /*bv*/, int /*x*/, int /*y*/) tip += "