]> git.lyx.org Git - features.git/commitdiff
Mark empty bib(la)tex insets (i.e., with no databases defined) (#12668)
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 19 Feb 2023 11:15:45 +0000 (12:15 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 19 Feb 2023 11:15:45 +0000 (12:15 +0100)
src/insets/InsetBibtex.cpp

index a9c0ff966b51e3c33c8b7803f4757e7ca417da23..55ba0aa87362c4c36cde5cbbb2c5a7eb48bb3316 100644 (file)
@@ -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 += "<ul>";
        if (bibfilelist.empty())
-               tip += "<li>" + _("none") + "</li>";
+               tip += "<li>" + _("None[[bib databases]], please fill in!") + "</li>";
        else
                for (docstring const & bibfile : bibfilelist)
                        tip += "<li>" + bibfile + "</li>";
@@ -934,6 +938,8 @@ void InsetBibtex::updateBuffer(ParIterator const &, UpdateType, bool const /*del
        }
        if (invalidate)
                buffer().invalidateBibinfoCache();
+
+       setBroken(getParam("bibfiles").empty());
 }