destruct LogThread correctly
This commit is contained in:
parent
9e522eddf8
commit
ea061ae239
@ -13,6 +13,13 @@ LogThread::LogThread(QObject *parent)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LogThread::~LogThread()
|
||||||
|
{
|
||||||
|
quit();
|
||||||
|
requestInterruption();
|
||||||
|
wait();
|
||||||
|
}
|
||||||
|
|
||||||
void LogThread::run()
|
void LogThread::run()
|
||||||
{
|
{
|
||||||
auto filePath = Logger::logFile();
|
auto filePath = Logger::logFile();
|
||||||
|
@ -16,6 +16,7 @@ class LogThread : public QThread
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit LogThread(QObject *parent = nullptr);
|
explicit LogThread(QObject *parent = nullptr);
|
||||||
|
~LogThread() override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void onLogChunk(const QString &logChunk);
|
void onLogChunk(const QString &logChunk);
|
||||||
|
Loading…
Reference in New Issue
Block a user