Index: sources/storage/TreatmentLog.cpp =================================================================== diff -u -r3e682c5afdadcf4dd2006e3d975fbee58e48619e -rc2f474ff07c98aa350c445a2474976a3cf985f40 --- sources/storage/TreatmentLog.cpp (.../TreatmentLog.cpp) (revision 3e682c5afdadcf4dd2006e3d975fbee58e48619e) +++ sources/storage/TreatmentLog.cpp (.../TreatmentLog.cpp) (revision c2f474ff07c98aa350c445a2474976a3cf985f40) @@ -341,7 +341,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); } @@ -497,7 +501,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); }