Commit b754fafd authored by Jan Blackquill's avatar Jan Blackquill 🌈

Fix users KCM navigating to pages with null users

This was caused by us registering the User as a type, which conflicted with the model role also named User.

BUG: 430204
parent 39decafa
......@@ -100,7 +100,7 @@ KCM.ScrollViewKCM {
function openPage() {
userList.currentIndex = index
kcm.push("UserDetailsPage.qml", {user: User})
kcm.push("UserDetailsPage.qml", {user: userObject})
onClicked: openPage()
......@@ -99,7 +99,7 @@ QHash<int, QByteArray> UserModel::roleNames() const
names.insert(NameRole, "name");
names.insert(EmailRole, "email");
names.insert(AdministratorRole, "administrator");
names.insert(UserRole, "User");
names.insert(UserRole, "userObject");
names.insert(FaceValidRole, "faceValid");
names.insert(LoggedInRole, "loggedIn");
names.insert(SectionHeaderRole, "sectionHeader");
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