diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 07d4ecd..3d2928c 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -629,6 +629,16 @@ void MainWindow::startCompression(bool onlyFailed) this->compressionWatcher = new QFutureWatcher(); connect(this->compressionWatcher, &QFutureWatcherBase::finished, this, &MainWindow::compressionFinished); + + connect(this->compressionWatcher, &QFutureWatcherBase::finished, [this] { + + size_t rowCount = this->cImageModel->rowCount(); + + for(size_t i = 0; i < rowCount; ++i) { + this->cImageModel->emitDataChanged(i); + } + }); + connect(this->compressionWatcher, &QFutureWatcherBase::progressValueChanged, this->cImageModel, &CImageTreeModel::emitDataChanged); connect(this->compressionWatcher, &QFutureWatcherBase::progressValueChanged, this, &MainWindow::updateCompressionProgressLabel);