Skip to content

Commit

Permalink
Fix build with Qt 6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
basyskom-jvoe authored and khaexy committed Mar 26, 2024
1 parent 16a5e1a commit b3a3cf4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,13 @@ QFuture<QString> BackEnd::findAllSubtypes(const QString &nodeId,
watcher->setFuture(childFuture);
QObject::connect(watcher.get(), &QFutureWatcher<QString>::finished, this,
[promise, watcher, childCount]() {
#if QT_VERSION < QT_VERSION_CHECK(6, 6, 0)
const auto results = watcher->future().results();
for (const auto &res : results)
promise->addResult(res);
#else
promise->addResults(watcher->future().results());
#endif
--*childCount;
if (*childCount == 0)
promise->finish();
Expand Down

0 comments on commit b3a3cf4

Please sign in to comment.