]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiDocument.cpp
Don't write a \bibtex_command to the preferences file if not needed.
[features.git] / src / frontends / qt4 / GuiDocument.cpp
index 8e47d9ed2481a658c0862bf141087386d738aecf..ec015597e9f07b87b2b357ed932ba9abeda55330 100644 (file)
@@ -1744,11 +1744,12 @@ void GuiDocument::applyView()
        string const bibtex_command =
                fromqstr(biblioModule->bibtexCO->itemData(
                        biblioModule->bibtexCO->currentIndex()).toString());
-       if (bibtex_command == "default")
+       string const bibtex_options =
+               fromqstr(biblioModule->bibtexOptionsED->text());
+       if (bibtex_command == "default" || bibtex_options.empty())
                bp_.bibtex_command = bibtex_command;
        else
-               bp_.bibtex_command = bibtex_command + " "
-                       + fromqstr(biblioModule->bibtexOptionsED->text());
+               bp_.bibtex_command = bibtex_command + " " + bibtex_options;
 
        // Indices
        indicesModule->apply(bp_);