Commit a282bc9d authored by David Edmundson's avatar David Edmundson

Don't assign a QtObject to a model

Summary:
It's a weird thing to do, and that's causing us to hit
https://bugreports.qt.io/browse/QTBUG-75900 when it tries to lookup a
property (icon) that we don't have.

BUG: 407220

Test Plan: Opened sddm-greeter --test-mode --theme  clicked button

Reviewers: #plasma, fvogt

Reviewed By: fvogt

Subscribers: fvogt, apol, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D21274
parent e31d37ac
......@@ -360,9 +360,16 @@ PlasmaCore.ColorScope {
notificationMessage: root.notificationMessage
loginScreenUiVisible: loginScreenRoot.uiVisible
userListModel: QtObject {
property string name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Type in Username and Password")
property string iconSource: ""
// using a model rather than a QObject list to avoid QTBUG-75900
userListModel: ListModel {
ListElement {
name: ""
iconSource: ""
}
Component.onCompleted: {
// as we can't bind inside ListElement
setProperty(0, "name", i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Type in Username and Password"));
}
}
onLoginRequest: {
......
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