mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
GuiLog: Detect Biber for the GUI.
This commit is contained in:
parent
63be00c8bc
commit
8cadee45e9
@ -23,6 +23,7 @@
|
||||
#include "support/docstring.h"
|
||||
#include "support/FileName.h"
|
||||
#include "support/gettext.h"
|
||||
#include "support/lstrings.h"
|
||||
|
||||
#include <QDesktopServices>
|
||||
#include <QTextBrowser>
|
||||
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user