Improved file handling from commit e33debcb.

This commit is contained in:
Mark Morschhäuser 2014-03-18 12:10:46 +01:00
parent da59b51c5e
commit d968f04b02

View file

@ -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();
}