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.");