From: Juergen Spitzmueller Date: Fri, 13 Jan 2017 09:57:53 +0000 (+0100) Subject: Clear styles widgets only if needed. X-Git-Tag: 2.3.0alpha1~485 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d401a462676792caf62d20b25573bcecf9a06d5e;p=features.git Clear styles widgets only if needed. --- diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index f7f00795ab..b89082558c 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -3758,14 +3758,13 @@ void GuiDocument::updateDefaultBiblio(string const & style, { QString const bibstyle = toqstr(style); biblioModule->defaultBiblioCO->clear(); - biblioModule->biblatexBbxCO->clear(); - biblioModule->biblatexCbxCO->clear(); int item_nr = -1; if (isBiblatex()) { if (which != "cbx") { // First the bbx styles + biblioModule->biblatexBbxCO->clear(); QStringList str = texFileList("bbxFiles.lst"); // test whether we have a valid list, otherwise run rescan if (str.isEmpty()) { @@ -3797,6 +3796,7 @@ void GuiDocument::updateDefaultBiblio(string const & style, if (which != "bbx") { // now the cbx styles + biblioModule->biblatexCbxCO->clear(); QStringList str = texFileList("cbxFiles.lst"); // test whether we have a valid list, otherwise run rescan if (str.isEmpty()) { @@ -3826,6 +3826,8 @@ void GuiDocument::updateDefaultBiblio(string const & style, biblioModule->biblatexCbxCO->clearEditText(); } } else {// BibTeX + biblioModule->biblatexBbxCO->clear(); + biblioModule->biblatexCbxCO->clear(); QStringList str = texFileList("bstFiles.lst"); // test whether we have a valid list, otherwise run rescan if (str.isEmpty()) {