Use this and watcher instead of =
This commit is contained in:
parent
88874f0dcd
commit
57a5eabd8f
@ -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();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user