diff --git a/cockatrice/src/main.cpp b/cockatrice/src/main.cpp index 4821cbf2..ef57655a 100644 --- a/cockatrice/src/main.cpp +++ b/cockatrice/src/main.cpp @@ -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(); }