accountsmanager.patch 1.7 KB

12345678910111213141516171819202122232425262728293031
  1. diff -Nuar a/src/accountsservice/accountsmanager.cpp b/src/accountsservice/accountsmanager.cpp
  2. --- a/src/accountsservice/accountsmanager.cpp 2023-12-02 19:43:15.000000000 +0300
  3. +++ b/src/accountsservice/accountsmanager.cpp 2023-12-30 17:26:14.667003659 +0300
  4. @@ -125,7 +125,7 @@
  5. QDBusPendingCall call = d->interface->CacheUser(userName);
  6. QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(call, this);
  7. - connect(watcher, &QDBusPendingCallWatcher::finished, this, [=](QDBusPendingCallWatcher *w) {
  8. + connect(watcher, &QDBusPendingCallWatcher::finished, this, [&](QDBusPendingCallWatcher *w) {
  9. QDBusPendingReply<QDBusObjectPath> reply = *w;
  10. w->deleteLater();
  11. if (reply.isError()) {
  12. @@ -162,7 +162,7 @@
  13. QDBusPendingCall call = d->interface->UncacheUser(userName);
  14. QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(call, this);
  15. - connect(watcher, &QDBusPendingCallWatcher::finished, this, [=](QDBusPendingCallWatcher *w) {
  16. + connect(watcher, &QDBusPendingCallWatcher::finished, this, [&](QDBusPendingCallWatcher *w) {
  17. QDBusPendingReply<QDBusObjectPath> reply = *w;
  18. w->deleteLater();
  19. if (reply.isError()) {
  20. @@ -195,7 +195,7 @@
  21. QDBusPendingCall call = d->interface->ListCachedUsers();
  22. QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(call, this);
  23. - connect(watcher, &QDBusPendingCallWatcher::finished, this, [=](QDBusPendingCallWatcher *w) {
  24. + connect(watcher, &QDBusPendingCallWatcher::finished, this, [&](QDBusPendingCallWatcher *w) {
  25. QDBusPendingReply<QList<QDBusObjectPath>> reply = *w;
  26. w->deleteLater();
  27. if (reply.isError()) {