commit 03817023f7a452fcdc83701371de3d2e6a2be35e
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sat Feb 22 08:58:47 2025 +0100

    Amend 04a9748e7ecd once more
    
    the (empty) year must be passed even if we have no long author list
    
    (cherry picked from commit 3160c04449e1d403641c0ba8cf6544f59e12c1da)
---
 src/frontends/qt/GuiBibitem.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontends/qt/GuiBibitem.cpp b/src/frontends/qt/GuiBibitem.cpp
index 244f304364..ed2e9bf6af 100644
--- a/src/frontends/qt/GuiBibitem.cpp
+++ b/src/frontends/qt/GuiBibitem.cpp
@@ -105,7 +105,7 @@ docstring GuiBibitem::dialogToParams() const
 {
        InsetCommandParams params(insetCode());
        QString label = labelED->text();
-       if (!allAuthorsED->text().isEmpty())
+       if (!allAuthorsED->isHidden() && !label.isEmpty())
                label += "(" + yearED->text() + ")" + allAuthorsED->text();
        params["key"] = qstring_to_ucs4(keyED->text());
        params["label"] = qstring_to_ucs4(label);
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to