mirror of https://github.com/KDE/kasts.git
Fix very weird msvc compiler issue
This commit is contained in:
parent
d0acc10c2b
commit
6d3951dcd6
|
@ -703,19 +703,19 @@ void Sync::linkUpAllDevices()
|
||||||
}
|
}
|
||||||
if (syncDevices.count() == ++m_deviceResponses) {
|
if (syncDevices.count() == ++m_deviceResponses) {
|
||||||
// We have now received all responses for all devices
|
// We have now received all responses for all devices
|
||||||
for (const QString &device : syncDevices) {
|
for (const QString &syncdevice : syncDevices) {
|
||||||
if (!m_gpodder) {
|
if (!m_gpodder) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
UploadSubscriptionRequest *upSubRequest = m_gpodder->uploadSubscriptionChanges(m_syncUpAllSubscriptions, QStringList(), device);
|
UploadSubscriptionRequest *upSubRequest = m_gpodder->uploadSubscriptionChanges(m_syncUpAllSubscriptions, QStringList(), syncdevice);
|
||||||
connect(upSubRequest, &UploadSubscriptionRequest::finished, this, [=]() {
|
connect(upSubRequest, &UploadSubscriptionRequest::finished, this, [this, upSubRequest, syncdevice]() {
|
||||||
if (upSubRequest->error()) {
|
if (upSubRequest->error()) {
|
||||||
Q_EMIT error(Error::Type::SyncError,
|
Q_EMIT error(Error::Type::SyncError,
|
||||||
QStringLiteral(""),
|
QStringLiteral(""),
|
||||||
QStringLiteral(""),
|
QStringLiteral(""),
|
||||||
upSubRequest->error(),
|
upSubRequest->error(),
|
||||||
upSubRequest->errorString(),
|
upSubRequest->errorString(),
|
||||||
i18n("Could not upload subscriptions for device %1", device));
|
i18n("Could not upload subscriptions for device %1", syncdevice));
|
||||||
}
|
}
|
||||||
upSubRequest->deleteLater();
|
upSubRequest->deleteLater();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue