Use default btprint value in the UI if none is given.

This commit is contained in:
Juergen Spitzmueller 2017-09-10 10:51:42 +02:00
parent 1adfb8a6c7
commit abc145f250

View File

@ -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);