mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
OP-1651 uncrustified
This commit is contained in:
parent
c69d8841f4
commit
faacd3e34b
@ -294,11 +294,11 @@ void mainMessageOutput(QtMsgType type, const QMessageLogContext &context, const
|
|||||||
void logInit(QString fileName)
|
void logInit(QString fileName)
|
||||||
{
|
{
|
||||||
QFile *file = new QFile(fileName);
|
QFile *file = new QFile(fileName);
|
||||||
|
|
||||||
if (file->open(QIODevice::WriteOnly | QIODevice::Text)) {
|
if (file->open(QIODevice::WriteOnly | QIODevice::Text)) {
|
||||||
logStream = new QTextStream(file);
|
logStream = new QTextStream(file);
|
||||||
qInstallMessageHandler(mainMessageOutput);
|
qInstallMessageHandler(mainMessageOutput);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// TODO error popup
|
// TODO error popup
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user