diff --git a/src/frontends/qt4/GuiLog.cpp b/src/frontends/qt4/GuiLog.cpp index 23ba276d8a..97e19e3536 100644 --- a/src/frontends/qt4/GuiLog.cpp +++ b/src/frontends/qt4/GuiLog.cpp @@ -23,6 +23,7 @@ #include "support/docstring.h" #include "support/FileName.h" #include "support/gettext.h" +#include "support/lstrings.h" #include #include @@ -244,8 +245,12 @@ bool GuiLog::initialiseParams(string const & data) logTypeCO->addItem(qt_("LaTeX"), toqstr(logtype)); FileName tmp = log; tmp.changeExtension("blg"); - if (tmp.exists()) - logTypeCO->addItem(qt_("BibTeX"), QString("bibtex")); + if (tmp.exists()) { + if (support::contains(tmp.fileContents("UTF-8"), from_ascii("This is Biber"))) + logTypeCO->addItem(qt_("Biber"), QString("bibtex")); + else + logTypeCO->addItem(qt_("BibTeX"), QString("bibtex")); + } tmp.changeExtension("ilg"); if (tmp.exists()) logTypeCO->addItem(qt_("Index"), QString("index"));