Changeset View
Changeset View
Standalone View
Standalone View
src/lib/accountmodel.cpp
Show First 20 Lines • Show All 328 Lines • ▼ Show 20 Line(s) | 327 | if (reply.isError()) { | |||
---|---|---|---|---|---|
329 | qCDebug(USER_MANAGER_LOG) << reply.error().message(); | 329 | qCDebug(USER_MANAGER_LOG) << reply.error().message(); | ||
330 | m_newUserData.clear(); | 330 | m_newUserData.clear(); | ||
331 | return false; | 331 | return false; | ||
332 | } | 332 | } | ||
333 | 333 | | |||
334 | m_newUserData.remove(Username); | 334 | m_newUserData.remove(Username); | ||
335 | m_newUserData.remove(RealName); | 335 | m_newUserData.remove(RealName); | ||
336 | 336 | | |||
337 | UserAdded(reply.value()); | ||||
338 | | ||||
337 | //If we don't have anything else to set just return | 339 | //If we don't have anything else to set just return | ||
338 | if (m_newUserData.isEmpty()) { | 340 | if (m_newUserData.isEmpty()) { | ||
339 | return true; | 341 | return true; | ||
340 | } | 342 | } | ||
341 | 343 | | |||
342 | UserAdded(reply.value()); | | |||
343 | | ||||
344 | QHash<AccountModel::Role, QVariant>::const_iterator i = m_newUserData.constBegin(); | 344 | QHash<AccountModel::Role, QVariant>::const_iterator i = m_newUserData.constBegin(); | ||
345 | while (i != m_newUserData.constEnd()) { | 345 | while (i != m_newUserData.constEnd()) { | ||
346 | qCDebug(USER_MANAGER_LOG) << "Setting extra:" << i.key() << "with value:" << i.value(); | 346 | qCDebug(USER_MANAGER_LOG) << "Setting extra:" << i.key() << "with value:" << i.value(); | ||
347 | setData(index, i.value(), i.key()); | 347 | setData(index, i.value(), i.key()); | ||
348 | ++i; | 348 | ++i; | ||
349 | } | 349 | } | ||
350 | 350 | | |||
351 | m_newUserData.clear(); | 351 | m_newUserData.clear(); | ||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |