[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasmate/terietor/konsolepreviewer] /: Don't append the same output again and again
From:       Giorgos Tsiapaliokas <terietor () gmail ! com>
Date:       2012-08-08 17:28:48
Message-ID: 20120808172848.0EC8DA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 70a04b4e2d7394e2f24fad6c5e90c5358ce21781 by Giorgos Tsiapaliokas.
Committed on 08/08/2012 at 17:41.
Pushed by tsiapaliwkas into branch 'terietor/konsolepreviewer'.

Don't append the same output again and again

M  +1    -1    main.cpp

http://commits.kde.org/plasmate/70a04b4e2d7394e2f24fad6c5e90c5358ce21781

diff --git a/main.cpp b/main.cpp
index b5edb17..bc0cccf 100644
--- a/main.cpp
+++ b/main.cpp
@@ -54,7 +54,7 @@ void customMessageHandler(QtMsgType type, const char *msg)
 =

         QFile outFile("/var/tmp/plasmatepreviewerlog.txt");
 =

-        outFile.open(QIODevice::WriteOnly | QIODevice::Append);
+        outFile.open(QIODevice::WriteOnly | QIODevice::Truncate);
         QTextStream ts(&outFile);
         ts << txt << endl;
     }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic