Commit 447639c7 authored by Tomi Leppänen's avatar Tomi Leppänen

Don't let guest user to change name

Signed-off-by: Tomi Leppänen's avatarTomi Leppänen <tomi.leppanen@jolla.com>
parent af9170ae
......@@ -212,6 +212,10 @@ bool UserModel::setData(const QModelIndex &index, const QVariant &value, int rol
return false;
UserInfo &user = m_users[index.row()];
if (user.type() == UserInfo::Guest)
return false;
switch (role) {
case NameRole: {
QString name = value.toString();
......
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