From d968f04b02374c9c940e1f9bd4b60b03ce8c06d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Morschh=C3=A4user?= Date: Tue, 18 Mar 2014 12:10:46 +0100 Subject: [PATCH] Improved file handling from commit e33debcb. --- cockatrice/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }