From 36227a135455e8dbd8f88782556d9fff30a659f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Thu, 7 Oct 2021 22:23:24 +0200 Subject: [PATCH] QtConcurrent::run has changed in Qt6 --- YACReaderLibrary/comic_vine/comic_vine_dialog.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp index e11f7225..d17633e2 100644 --- a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp +++ b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp @@ -151,13 +151,23 @@ void ComicVineDialog::goNext() QList> matchingInfo = sortVolumeComicsWidget->getMatchingInfo(); int count = selectVolumeWidget->getSelectedVolumeNumIssues(); QString publisher = selectVolumeWidget->getSelectedVolumePublisher(); + +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + QtConcurrent::run(&ComicVineDialog::getComicsInfo, this, matchingInfo, count, publisher); +#else QtConcurrent::run(this, &ComicVineDialog::getComicsInfo, matchingInfo, count, publisher); +#endif + } else if (content->currentWidget() == selectComicWidget) { showLoading(); QString comicId = selectComicWidget->getSelectedComicId(); int count = selectVolumeWidget->getSelectedVolumeNumIssues(); QString publisher = selectVolumeWidget->getSelectedVolumePublisher(); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + QtConcurrent::run(&ComicVineDialog::getComicInfo, this, comicId, count, publisher); +#else QtConcurrent::run(this, &ComicVineDialog::getComicInfo, comicId, count, publisher); +#endif } }