diff --git a/src/libcalamaresui/widgets/LogWidget.cpp b/src/libcalamaresui/widgets/LogWidget.cpp index a4af6c522..18642f089 100644 --- a/src/libcalamaresui/widgets/LogWidget.cpp +++ b/src/libcalamaresui/widgets/LogWidget.cpp @@ -13,6 +13,13 @@ LogThread::LogThread(QObject *parent) } +LogThread::~LogThread() +{ + quit(); + requestInterruption(); + wait(); +} + void LogThread::run() { auto filePath = Logger::logFile(); diff --git a/src/libcalamaresui/widgets/LogWidget.h b/src/libcalamaresui/widgets/LogWidget.h index 2def81845..c51e64393 100644 --- a/src/libcalamaresui/widgets/LogWidget.h +++ b/src/libcalamaresui/widgets/LogWidget.h @@ -16,6 +16,7 @@ class LogThread : public QThread public: explicit LogThread(QObject *parent = nullptr); + ~LogThread() override; signals: void onLogChunk(const QString &logChunk);