Fix QtConcurrent::run build with Qt 5

This commit is contained in:
Jonas Kvinge
2023-07-21 06:10:44 +02:00
parent 2e61235403
commit 95eed1ecec
3 changed files with 3 additions and 3 deletions

View File

@@ -221,7 +221,7 @@ void PlaylistManager::Save(const int id, const QString &filename, const Playlist
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QFuture<SongList> future = QtConcurrent::run(&PlaylistBackend::GetPlaylistSongs, playlist_backend_, id);
#else
QFuture<SongList> future = QtConcurrent::run(playlist_backend_, &PlaylistBackend::GetPlaylistSongs, id);
QFuture<SongList> future = QtConcurrent::run(&*playlist_backend_, &PlaylistBackend::GetPlaylistSongs, id);
#endif
QFutureWatcher<SongList> *watcher = new QFutureWatcher<SongList>();
QObject::connect(watcher, &QFutureWatcher<SongList>::finished, this, [this, watcher, filename, path_type]() {