Commit d968f04b authored by Mark Morschhäuser's avatar Mark Morschhäuser
Browse files

Improved file handling from commit e33debcb.

parent da59b51c
......@@ -58,9 +58,9 @@ QString translationPath = QString();
void myMessageOutput(QtMsgType /*type*/, const char *msg)
{
QFile file("qdebug.txt");
file.open(QIODevice::WriteOnly | QIODevice::Text);
file.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text);
QTextStream out(&file);
out << msg << "\n";
out << msg << endl;
file.close();
}
......
Supports Markdown
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