@@ -136,7 +136,7 @@ void AccountsService::updateDemoEdges(bool async)
136136
137137 QDBusPendingReply<QDBusVariant> reply = *watcher;
138138 if (reply.isError()) {
139− qWarning() << "Failed to get 'demo-edges' property";
139+ qWarning() << "Failed to get 'demo-edges' property - " << reply.error().message();
140140 watcher->deleteLater();
141141 return;
142142 }
@@ -148,7 +148,10 @@ void AccountsService::updateDemoEdges(bool async)
148148 }
149149 watcher->deleteLater();
150150 });
151− if (!async) watcher->waitForFinished();
151+ if (!async) {
152+ watcher->waitForFinished();
153+ delete watcher;
154+ }
152155}
153156
154157void AccountsService::updateEnableLauncherWhileLocked(bool async)
@@ -163,7 +166,7 @@ void AccountsService::updateEnableLauncherWhileLocked(bool async)
163166
164167 QDBusPendingReply<QDBusVariant> reply = *watcher;
165168 if (reply.isError()) {
166− qWarning() << "Failed to get 'EnableLauncherWhileLocked' property";
169+ qWarning() << "Failed to get 'EnableLauncherWhileLocked' property - " << reply.error().message();
167170 watcher->deleteLater();
168171 return;
169172 }
@@ -175,7 +178,10 @@ void AccountsService::updateEnableLauncherWhileLocked(bool async)
175178 }
176179 watcher->deleteLater();
177180 });
178− if (!async) watcher->waitForFinished();
181+ if (!async) {
182+ watcher->waitForFinished();
183+ delete watcher;
184+ }
179185}
180186
181187void AccountsService::updateEnableIndicatorsWhileLocked(bool async)
@@ -190,7 +196,7 @@ void AccountsService::updateEnableIndicatorsWhileLocked(bool async)
190196
191197 QDBusPendingReply<QDBusVariant> reply = *watcher;
192198 if (reply.isError()) {
193− qWarning() << "Failed to get 'EnableIndicatorsWhileLocked' property";
199+ qWarning() << "Failed to get 'EnableIndicatorsWhileLocked' property - " << reply.error().message();
194200 watcher->deleteLater();
195201 return;
196202 }
@@ -202,7 +208,10 @@ void AccountsService::updateEnableIndicatorsWhileLocked(bool async)
202208 }
203209 watcher->deleteLater();
204210 });
205− if (!async) watcher->waitForFinished();
211+ if (!async) {
212+ watcher->waitForFinished();
213+ delete watcher;
214+ }
206215}
207216
208217void AccountsService::updateBackgroundFile(bool async)
@@ -217,7 +226,7 @@ void AccountsService::updateBackgroundFile(bool async)
217226
218227 QDBusPendingReply<QDBusVariant> reply = *watcher;
219228 if (reply.isError()) {
220− qWarning() << "Failed to get 'BackgroundFile' property";
229+ qWarning() << "Failed to get 'BackgroundFile' property - " << reply.error().message();
221230 watcher->deleteLater();
222231 return;
223232 }
@@ -229,7 +238,10 @@ void AccountsService::updateBackgroundFile(bool async)
229238 }
230239 watcher->deleteLater();
231240 });
232− if (!async) watcher->waitForFinished();
241+ if (!async) {
242+ watcher->waitForFinished();
243+ delete watcher;
244+ }
233245}
234246
235247void AccountsService::updateStatsWelcomeScreen(bool async)
@@ -244,7 +256,7 @@ void AccountsService::updateStatsWelcomeScreen(bool async)
244256
245257 QDBusPendingReply<QDBusVariant> reply = *watcher;
246258 if (reply.isError()) {
247− qWarning() << "Failed to get 'StatsWelcomeScreen' property";
259+ qWarning() << "Failed to get 'StatsWelcomeScreen' property - " << reply.error().message();
248260 watcher->deleteLater();
249261 return;
250262 }
@@ -256,7 +268,10 @@ void AccountsService::updateStatsWelcomeScreen(bool async)
256268 }
257269 watcher->deleteLater();
258270 });
259− if (!async) watcher->waitForFinished();
271+ if (!async) {
272+ watcher->waitForFinished();
273+ delete watcher;
274+ }
260275}
261276
262277void AccountsService::updatePasswordDisplayHint(bool async)
@@ -271,7 +286,7 @@ void AccountsService::updatePasswordDisplayHint(bool async)
271286
272287 QDBusPendingReply<QDBusVariant> reply = *watcher;
273288 if (reply.isError()) {
274− qWarning() << "Failed to get 'PasswordDisplayHint' property";
289+ qWarning() << "Failed to get 'PasswordDisplayHint' property - " << reply.error().message();
275290 watcher->deleteLater();
276291 return;
277292 }
@@ -283,7 +298,10 @@ void AccountsService::updatePasswordDisplayHint(bool async)
283298 }
284299 watcher->deleteLater();
285300 });
286− if (!async) watcher->waitForFinished();
301+ if (!async) {
302+ watcher->waitForFinished();
303+ delete watcher;
304+ }
287305}
288306
289307void AccountsService::updateFailedLogins(bool async)
@@ -298,7 +316,7 @@ void AccountsService::updateFailedLogins(bool async)
298316
299317 QDBusPendingReply<QDBusVariant> reply = *watcher;
300318 if (reply.isError()) {
301− qWarning() << "Failed to get 'FailedLogins' property";
319+ qWarning() << "Failed to get 'FailedLogins' property - " << reply.error().message();
302320 watcher->deleteLater();
303321 return;
304322 }
@@ -310,7 +328,10 @@ void AccountsService::updateFailedLogins(bool async)
310328 }
311329 watcher->deleteLater();
312330 });
313− if (!async) watcher->waitForFinished();
331+ if (!async) {
332+ watcher->waitForFinished();
333+ delete watcher;
334+ }
314335}
315336
316337void AccountsService::updateHereEnabled(bool async)
@@ -325,7 +346,7 @@ void AccountsService::updateHereEnabled(bool async)
325346
326347 QDBusPendingReply<QDBusVariant> reply = *watcher;
327348 if (reply.isError()) {
328− qWarning() << "Failed to get 'LicenseAccepted' property";
349+ qWarning() << "Failed to get 'LicenseAccepted' property - " << reply.error().message();
329350 watcher->deleteLater();
330351 return;
331352 }
@@ -337,7 +358,10 @@ void AccountsService::updateHereEnabled(bool async)
337358 }
338359 watcher->deleteLater();
339360 });
340− if (!async) watcher->waitForFinished();
361+ if (!async) {
362+ watcher->waitForFinished();
363+ delete watcher;
364+ }
341365}
342366
343367void AccountsService::updateHereLicensePath(bool async)
@@ -352,7 +376,7 @@ void AccountsService::updateHereLicensePath(bool async)
352376
353377 QDBusPendingReply<QDBusVariant> reply = *watcher;
354378 if (reply.isError()) {
355− qWarning() << "Failed to get 'LicenseBasePath' property";
379+ qWarning() << "Failed to get 'LicenseBasePath' property - " << reply.error().message();
356380 watcher->deleteLater();
357381 return;
358382 }
@@ -367,7 +391,10 @@ void AccountsService::updateHereLicensePath(bool async)
367391 }
368392 watcher->deleteLater();
369393 });
370− if (!async) watcher->waitForFinished();
394+ if (!async) {
395+ watcher->waitForFinished();
396+ delete watcher;
397+ }
371398}
372399
373400uint AccountsService::failedLogins() const