Commit a2f7d308 authored by Méven Car's avatar Méven Car
Browse files

Don't CacheUser/UnCacheUser when editing Realname

Summary:
1d10226d and 83549151 introduced those lines to follow gnome-control-center example.
Since then gnome-control-center does not call AccountService CacheUser UnCacheUser.

BUG: 392943
FIXED-IN: 5.18

Test Plan:
1. Open user-mananger `kcmshell5 user_manager`
2. Ensure to set any picture for your user
3. Add "1" to your Real name
4. Click on Apply

Before:
The avatar for your account in the left list is resetted to default setting.

After:
Only the RealName has changed.

Reviewers: ngraham, #plasma

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25439
parent b279882a
......@@ -207,8 +207,6 @@ bool AccountModel::setData(const QModelIndex& index, const QVariant& value, int
}
m_kEmailSettings.setSetting(KEMailSettings::RealName, value.toString());
m_dbus->UncacheUser(acc->userName()).waitForFinished();
m_dbus->CacheUser(acc->userName());
emit dataChanged(index, index);
return true;
case AccountModel::Username:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment