@@ -136,7 +136,7 @@ void AccountsService::updateDemoEdges(bool async)
137 QDBusPendingReply<QDBusVariant> reply = *watcher;
137 QDBusPendingReply<QDBusVariant> reply = *watcher;
138 if (reply.isError()) {
138 if (reply.isError()) {
139− qWarning() << "Failed to get 'demo-edges' property";
139+ qWarning() << "Failed to get 'demo-edges' property - " << reply.error().message();
140 watcher->deleteLater();
140 watcher->deleteLater();
@@ -148,7 +148,10 @@ void AccountsService::updateDemoEdges(bool async)
149 watcher->deleteLater();
149 watcher->deleteLater();
151− if (!async) watcher->waitForFinished();
152+ watcher->waitForFinished();
154void AccountsService::updateEnableLauncherWhileLocked(bool async)
157void AccountsService::updateEnableLauncherWhileLocked(bool async)
@@ -163,7 +166,7 @@ void AccountsService::updateEnableLauncherWhileLocked(bool async)
164 QDBusPendingReply<QDBusVariant> reply = *watcher;
167 QDBusPendingReply<QDBusVariant> reply = *watcher;
165 if (reply.isError()) {
168 if (reply.isError()) {
166− qWarning() << "Failed to get 'EnableLauncherWhileLocked' property";
169+ qWarning() << "Failed to get 'EnableLauncherWhileLocked' property - " << reply.error().message();
167 watcher->deleteLater();
170 watcher->deleteLater();
@@ -175,7 +178,10 @@ void AccountsService::updateEnableLauncherWhileLocked(bool async)
176 watcher->deleteLater();
179 watcher->deleteLater();
178− if (!async) watcher->waitForFinished();
182+ watcher->waitForFinished();
181void AccountsService::updateEnableIndicatorsWhileLocked(bool async)
187void AccountsService::updateEnableIndicatorsWhileLocked(bool async)
@@ -190,7 +196,7 @@ void AccountsService::updateEnableIndicatorsWhileLocked(bool async)
191 QDBusPendingReply<QDBusVariant> reply = *watcher;
197 QDBusPendingReply<QDBusVariant> reply = *watcher;
192 if (reply.isError()) {
198 if (reply.isError()) {
193− qWarning() << "Failed to get 'EnableIndicatorsWhileLocked' property";
199+ qWarning() << "Failed to get 'EnableIndicatorsWhileLocked' property - " << reply.error().message();
194 watcher->deleteLater();
200 watcher->deleteLater();
@@ -202,7 +208,10 @@ void AccountsService::updateEnableIndicatorsWhileLocked(bool async)
203 watcher->deleteLater();
209 watcher->deleteLater();
205− if (!async) watcher->waitForFinished();
212+ watcher->waitForFinished();
208void AccountsService::updateBackgroundFile(bool async)
217void AccountsService::updateBackgroundFile(bool async)
@@ -217,7 +226,7 @@ void AccountsService::updateBackgroundFile(bool async)
218 QDBusPendingReply<QDBusVariant> reply = *watcher;
227 QDBusPendingReply<QDBusVariant> reply = *watcher;
219 if (reply.isError()) {
228 if (reply.isError()) {
220− qWarning() << "Failed to get 'BackgroundFile' property";
229+ qWarning() << "Failed to get 'BackgroundFile' property - " << reply.error().message();
221 watcher->deleteLater();
230 watcher->deleteLater();
@@ -229,7 +238,10 @@ void AccountsService::updateBackgroundFile(bool async)
230 watcher->deleteLater();
239 watcher->deleteLater();
232− if (!async) watcher->waitForFinished();
242+ watcher->waitForFinished();
235void AccountsService::updateStatsWelcomeScreen(bool async)
247void AccountsService::updateStatsWelcomeScreen(bool async)
@@ -244,7 +256,7 @@ void AccountsService::updateStatsWelcomeScreen(bool async)
245 QDBusPendingReply<QDBusVariant> reply = *watcher;
257 QDBusPendingReply<QDBusVariant> reply = *watcher;
246 if (reply.isError()) {
258 if (reply.isError()) {
247− qWarning() << "Failed to get 'StatsWelcomeScreen' property";
259+ qWarning() << "Failed to get 'StatsWelcomeScreen' property - " << reply.error().message();
248 watcher->deleteLater();
260 watcher->deleteLater();
@@ -256,7 +268,10 @@ void AccountsService::updateStatsWelcomeScreen(bool async)
257 watcher->deleteLater();
269 watcher->deleteLater();
259− if (!async) watcher->waitForFinished();
272+ watcher->waitForFinished();
262void AccountsService::updatePasswordDisplayHint(bool async)
277void AccountsService::updatePasswordDisplayHint(bool async)
@@ -271,7 +286,7 @@ void AccountsService::updatePasswordDisplayHint(bool async)
272 QDBusPendingReply<QDBusVariant> reply = *watcher;
287 QDBusPendingReply<QDBusVariant> reply = *watcher;
273 if (reply.isError()) {
288 if (reply.isError()) {
274− qWarning() << "Failed to get 'PasswordDisplayHint' property";
289+ qWarning() << "Failed to get 'PasswordDisplayHint' property - " << reply.error().message();
275 watcher->deleteLater();
290 watcher->deleteLater();
@@ -283,7 +298,10 @@ void AccountsService::updatePasswordDisplayHint(bool async)
284 watcher->deleteLater();
299 watcher->deleteLater();
286− if (!async) watcher->waitForFinished();
302+ watcher->waitForFinished();
289void AccountsService::updateFailedLogins(bool async)
307void AccountsService::updateFailedLogins(bool async)
@@ -298,7 +316,7 @@ void AccountsService::updateFailedLogins(bool async)
299 QDBusPendingReply<QDBusVariant> reply = *watcher;
317 QDBusPendingReply<QDBusVariant> reply = *watcher;
300 if (reply.isError()) {
318 if (reply.isError()) {
301− qWarning() << "Failed to get 'FailedLogins' property";
319+ qWarning() << "Failed to get 'FailedLogins' property - " << reply.error().message();
302 watcher->deleteLater();
320 watcher->deleteLater();
@@ -310,7 +328,10 @@ void AccountsService::updateFailedLogins(bool async)
311 watcher->deleteLater();
329 watcher->deleteLater();
313− if (!async) watcher->waitForFinished();
332+ watcher->waitForFinished();
316void AccountsService::updateHereEnabled(bool async)
337void AccountsService::updateHereEnabled(bool async)
@@ -325,7 +346,7 @@ void AccountsService::updateHereEnabled(bool async)
326 QDBusPendingReply<QDBusVariant> reply = *watcher;
347 QDBusPendingReply<QDBusVariant> reply = *watcher;
327 if (reply.isError()) {
348 if (reply.isError()) {
328− qWarning() << "Failed to get 'LicenseAccepted' property";
349+ qWarning() << "Failed to get 'LicenseAccepted' property - " << reply.error().message();
329 watcher->deleteLater();
350 watcher->deleteLater();
@@ -337,7 +358,10 @@ void AccountsService::updateHereEnabled(bool async)
338 watcher->deleteLater();
359 watcher->deleteLater();
340− if (!async) watcher->waitForFinished();
362+ watcher->waitForFinished();
343void AccountsService::updateHereLicensePath(bool async)
367void AccountsService::updateHereLicensePath(bool async)
@@ -352,7 +376,7 @@ void AccountsService::updateHereLicensePath(bool async)
353 QDBusPendingReply<QDBusVariant> reply = *watcher;
377 QDBusPendingReply<QDBusVariant> reply = *watcher;
354 if (reply.isError()) {
378 if (reply.isError()) {
355− qWarning() << "Failed to get 'LicenseBasePath' property";
379+ qWarning() << "Failed to get 'LicenseBasePath' property - " << reply.error().message();
356 watcher->deleteLater();
380 watcher->deleteLater();
@@ -367,7 +391,10 @@ void AccountsService::updateHereLicensePath(bool async)
368 watcher->deleteLater();
392 watcher->deleteLater();
370− if (!async) watcher->waitForFinished();
395+ watcher->waitForFinished();
373uint AccountsService::failedLogins() const
400uint AccountsService::failedLogins() const