修订版 | 0a7ed88b64edf8e6011e539ee556a12134642c8c (tree) |
---|---|
时间 | 2013-01-31 23:42:13 |
作者 | alucky4416 <alucky4416@user...> |
Commiter | alucky4416 |
BUG: logthread stop flag initilize missing.
@@ -5,11 +5,15 @@ | ||
5 | 5 | #include <QTextStream> |
6 | 6 | |
7 | 7 | #include <QDateTime> |
8 | + | |
9 | +#include <QMessageBox> | |
8 | 10 | #include <QDebug> |
9 | 11 | |
10 | 12 | LogThread::LogThread(QObject *parent) : |
11 | 13 | QThread(parent) |
12 | 14 | { |
15 | + stopped = false; | |
16 | + | |
13 | 17 | logging = false; |
14 | 18 | logsavefolderpath = ""; // log save folder |
15 | 19 | logfilepath = ""; // log file path |
@@ -60,7 +64,7 @@ void LogThread::LogData(quint64 timestamp, double tmpr, double humid) | ||
60 | 64 | void LogThread::run() |
61 | 65 | { |
62 | 66 | |
63 | - // qDebug() << "logTh is started."; | |
67 | + qDebug() << "logTh is started."; | |
64 | 68 | EventData event; |
65 | 69 | QFile csvfile; |
66 | 70 | QTextStream out; |
@@ -149,5 +153,5 @@ void LogThread::run() | ||
149 | 153 | csvfile.close(); |
150 | 154 | } |
151 | 155 | |
152 | - // qDebug() << "logTh is stopped."; | |
156 | + qDebug() << "logTh is stopped."; | |
153 | 157 | } |