From bf7951dc18199d4d0fc7fff6ef0c36cb20d41f0b Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Wed, 10 May 2023 23:10:51 +0200 Subject: [PATCH] Try to actually capture the variable :D --- src/singletons/Updates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/singletons/Updates.cpp b/src/singletons/Updates.cpp index 26c4fee12..3d1ce23a3 100644 --- a/src/singletons/Updates.cpp +++ b/src/singletons/Updates.cpp @@ -115,7 +115,7 @@ void Updates::installUpdates() .onError([this, windowName](NetworkResult) { this->setStatus_(DownloadFailed); - postToThread([] { + postToThread([windowName] { QMessageBox *box = new QMessageBox( QMessageBox::Information, windowName, "Failed while trying to download the update.");