mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 05:40:59 +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/docstring.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QTextBrowser>
|
#include <QTextBrowser>
|
||||||
@ -244,8 +245,12 @@ bool GuiLog::initialiseParams(string const & data)
|
|||||||
logTypeCO->addItem(qt_("LaTeX"), toqstr(logtype));
|
logTypeCO->addItem(qt_("LaTeX"), toqstr(logtype));
|
||||||
FileName tmp = log;
|
FileName tmp = log;
|
||||||
tmp.changeExtension("blg");
|
tmp.changeExtension("blg");
|
||||||
if (tmp.exists())
|
if (tmp.exists()) {
|
||||||
logTypeCO->addItem(qt_("BibTeX"), QString("bibtex"));
|
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");
|
tmp.changeExtension("ilg");
|
||||||
if (tmp.exists())
|
if (tmp.exists())
|
||||||
logTypeCO->addItem(qt_("Index"), QString("index"));
|
logTypeCO->addItem(qt_("Index"), QString("index"));
|
||||||
|
Loading…
Reference in New Issue
Block a user