Use this and watcher instead of =

This commit is contained in:
Jonas Kvinge 2021-01-30 22:41:57 +01:00
parent 88874f0dcd
commit 57a5eabd8f
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ bool OrganizeDialog::SetFilenames(const QStringList &filenames) {
#endif
QFutureWatcher<SongList> *watcher = new QFutureWatcher<SongList>();
watcher->setFuture(songs_future_);
QObject::connect(watcher, &QFutureWatcher<SongList>::finished, this, [=]() {
QObject::connect(watcher, &QFutureWatcher<SongList>::finished, this, [this, watcher]() {
SetSongs(watcher->result());
watcher->deleteLater();
});