diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-09-11 23:14:54 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-09-11 23:14:54 +0200 |
commit | eadeb9f2a13577d6cd532b2a1bd306710136322a (patch) | |
tree | c8317cc0eb0ca7a9e017d92d9f7472e0966f92c0 /src/qt/mainwindow.cpp | |
parent | 37de0cc7b0eeeefcc25173913faaefa2a7673d2c (diff) | |
download | OFQT-eadeb9f2a13577d6cd532b2a1bd306710136322a.tar.gz OFQT-eadeb9f2a13577d6cd532b2a1bd306710136322a.zip |
move over to official cmake packages, fix data race in qt frontend
Diffstat (limited to 'src/qt/mainwindow.cpp')
-rw-r--r-- | src/qt/mainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/mainwindow.cpp b/src/qt/mainwindow.cpp index 12ddf3e..49cc09f 100644 --- a/src/qt/mainwindow.cpp +++ b/src/qt/mainwindow.cpp @@ -91,9 +91,11 @@ void MainWindow::workerResult(const enum Worker::Results_t& result) break; case Worker::RESULT_UPDATE_TEXT: + pthread_mutex_lock(&worker->textMutex); ui->progressBar->setValue(worker->progress); ui->infoLabel->setText(worker->infoText); worker->infoText.clear(); + pthread_mutex_unlock(&worker->textMutex); break; case Worker::RESULT_IS_INSTALLED: |