From 28c130a910f37de7afb24d689b35accec1488ab1 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 30 Jan 2021 22:42:21 +0100 Subject: [PATCH] Add this as context to lambda connection --- src/moodbar/moodbaritemdelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/moodbar/moodbaritemdelegate.cpp b/src/moodbar/moodbaritemdelegate.cpp index 1a537a247..71bca994b 100644 --- a/src/moodbar/moodbaritemdelegate.cpp +++ b/src/moodbar/moodbaritemdelegate.cpp @@ -214,7 +214,7 @@ void MoodbarItemDelegate::StartLoadingColors(const QUrl &url, const QByteArray & QFuture future = QtConcurrent::run(MoodbarRenderer::Colors, bytes, style_, qApp->palette()); QFutureWatcher *watcher = new QFutureWatcher(); watcher->setFuture(future); - QObject::connect(watcher, &QFutureWatcher::finished, [this, watcher, url]() { + QObject::connect(watcher, &QFutureWatcher::finished, this, [this, watcher, url]() { ColorsLoaded(url, watcher->result()); watcher->deleteLater(); });