Commit a73a386d authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Only reset file on startup

parent c29ef846
......@@ -549,12 +549,12 @@ QString constGenetiveToAbbrev( const QString &genetive_ ) {
dir.mkpath(path);
QString name = "log_" + QDateTime::currentDateTime().toString("HH:mm:ss") + ".txt";
_filename = path + QStringLiteral("/") + name;
}
// Clear file contents
QFile file(_filename);
file.open(QFile::WriteOnly);
file.close();
// Clear file contents
QFile file(_filename);
file.open(QFile::WriteOnly);
file.close();
}
qInstallMessageHandler(File);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment