]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiIndices.cpp
Don't write a \bibtex_command to the preferences file if not needed.
[features.git] / src / frontends / qt4 / GuiIndices.cpp
index d44a377d1317935de709862f651fd3f9d5eeaa7c..969b86ad5d22b4e5ff58d1556d63696c74823146 100644 (file)
@@ -136,11 +136,11 @@ void GuiIndices::apply(BufferParams & params) const
        string const index_command =
                fromqstr(indexCO->itemData(
                        indexCO->currentIndex()).toString());
-       if (index_command == "default")
+       string const index_options = fromqstr(indexOptionsED->text());
+       if (index_command == "default" || index_options.empty())
                params.index_command = index_command;
        else
-               params.index_command = index_command + " "
-                       + fromqstr(indexOptionsED->text());
+               params.index_command = index_command + " " + index_options;
 }