From abc145f250142e01016f486f2c585d84b343ed8c Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 10 Sep 2017 10:51:42 +0200 Subject: [PATCH] Use default btprint value in the UI if none is given. --- src/frontends/qt4/GuiBibtex.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiBibtex.cpp b/src/frontends/qt4/GuiBibtex.cpp index 1f87b6ac9d..45ad6ca1c6 100644 --- a/src/frontends/qt4/GuiBibtex.cpp +++ b/src/frontends/qt4/GuiBibtex.cpp @@ -338,7 +338,11 @@ void GuiBibtex::updateContents() if (usingBiblatex() && !buffer().masterParams().multibib.empty()) btPrintCO->addItem(qt_("all reference units"), toqstr("bibbysection")); - btPrintCO->setCurrentIndex(btPrintCO->findData(toqstr(params_["btprint"]))); + docstring btprint = params_["btprint"]; + if (btprint.empty()) + // default + btprint = from_ascii("btPrintCited"); + btPrintCO->setCurrentIndex(btPrintCO->findData(toqstr(btprint))); // Only useful for biblatex biblatexOptsLA->setVisible(biblatex);