Fix very weird msvc compiler issue

This commit is contained in:
Bart De Vries 2021-11-03 19:51:38 +01:00
parent d0acc10c2b
commit 6d3951dcd6
1 changed files with 4 additions and 4 deletions

View File

@ -703,19 +703,19 @@ void Sync::linkUpAllDevices()
}
if (syncDevices.count() == ++m_deviceResponses) {
// We have now received all responses for all devices
for (const QString &device : syncDevices) {
for (const QString &syncdevice : syncDevices) {
if (!m_gpodder) {
return;
}
UploadSubscriptionRequest *upSubRequest = m_gpodder->uploadSubscriptionChanges(m_syncUpAllSubscriptions, QStringList(), device);
connect(upSubRequest, &UploadSubscriptionRequest::finished, this, [=]() {
UploadSubscriptionRequest *upSubRequest = m_gpodder->uploadSubscriptionChanges(m_syncUpAllSubscriptions, QStringList(), syncdevice);
connect(upSubRequest, &UploadSubscriptionRequest::finished, this, [this, upSubRequest, syncdevice]() {
if (upSubRequest->error()) {
Q_EMIT error(Error::Type::SyncError,
QStringLiteral(""),
QStringLiteral(""),
upSubRequest->error(),
upSubRequest->errorString(),
i18n("Could not upload subscriptions for device %1", device));
i18n("Could not upload subscriptions for device %1", syncdevice));
}
upSubRequest->deleteLater();
});