Index: sources/storage/TreatmentLog.cpp =================================================================== diff -u -r456da384df52c20ce45b2bec4317806ee11af1f6 -rbecdb453874007323459a9afe9fe581b6c158902 --- sources/storage/TreatmentLog.cpp (.../TreatmentLog.cpp) (revision 456da384df52c20ce45b2bec4317806ee11af1f6) +++ sources/storage/TreatmentLog.cpp (.../TreatmentLog.cpp) (revision becdb453874007323459a9afe9fe581b6c158902) @@ -340,7 +340,11 @@ void TreatmentLog::saveLogConcurrent() { LOG_DEBUG("Save Treatment Log Started"); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + QFuture mFuture = QtConcurrent::run(&TreatmentLog::saveLog, this); +#else QFuture mFuture = QtConcurrent::run(this, &TreatmentLog::saveLog); +#endif _saveWatcher.setFuture(mFuture); } @@ -495,7 +499,11 @@ void TreatmentLog::exportLogConcurrent() { LOG_DEBUG("Export Treatment Log Started"); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + QFuture mFuture = QtConcurrent::run(&TreatmentLog::exportLog, this); +#else QFuture mFuture = QtConcurrent::run(this, &TreatmentLog::exportLog); +#endif _exportWatcher.setFuture(mFuture); }