Changeset View
Changeset View
Standalone View
Standalone View
src/lib/accountmodel.cpp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 81 | { | |||
---|---|---|---|---|---|
83 | QDBusPendingReply <QList <QDBusObjectPath > > reply = m_dbus->ListCachedUsers(); | 83 | QDBusPendingReply <QList <QDBusObjectPath > > reply = m_dbus->ListCachedUsers(); | ||
84 | reply.waitForFinished(); | 84 | reply.waitForFinished(); | ||
85 | 85 | | |||
86 | if (reply.isError()) { | 86 | if (reply.isError()) { | ||
87 | qCDebug(USER_MANAGER_LOG) << reply.error().message(); | 87 | qCDebug(USER_MANAGER_LOG) << reply.error().message(); | ||
88 | return; | 88 | return; | ||
89 | } | 89 | } | ||
90 | 90 | | |||
91 | QList<QDBusObjectPath> users = reply.value(); | 91 | const QList<QDBusObjectPath> users = reply.value(); | ||
92 | Q_FOREACH(const QDBusObjectPath& path, users) { | 92 | for (const QDBusObjectPath& path : users) { | ||
93 | addAccount(path.path()); | 93 | addAccount(path.path()); | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | // Adding fake "new user" directly into cache | 96 | // Adding fake "new user" directly into cache | ||
97 | addAccountToCache(QStringLiteral("new-user"), nullptr); | 97 | addAccountToCache(QStringLiteral("new-user"), nullptr); | ||
98 | 98 | | |||
99 | m_kEmailSettings.setProfile(m_kEmailSettings.defaultProfileName()); | 99 | m_kEmailSettings.setProfile(m_kEmailSettings.defaultProfileName()); | ||
100 | 100 | | |||
▲ Show 20 Lines • Show All 442 Lines • Show Last 20 Lines |