Try to actually capture the variable :D

This commit is contained in:
Mm2PL 2023-05-10 23:10:51 +02:00
parent 16c9b5ed4e
commit bf7951dc18
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -115,7 +115,7 @@ void Updates::installUpdates()
.onError([this, windowName](NetworkResult) { .onError([this, windowName](NetworkResult) {
this->setStatus_(DownloadFailed); this->setStatus_(DownloadFailed);
postToThread([] { postToThread([windowName] {
QMessageBox *box = new QMessageBox( QMessageBox *box = new QMessageBox(
QMessageBox::Information, windowName, QMessageBox::Information, windowName,
"Failed while trying to download the update."); "Failed while trying to download the update.");