Commit d9e0bee1 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

unbreak the refresh button

model was undefined at its scope


(cherry picked from commit eaff14b2)
parent 62251324
......@@ -24,7 +24,7 @@ SimpleKCM {
Kirigami.CardsLayout {
Repeater {
id: repeater
model: NetworkModel {}
model: NetworkModel { id: networkModel }
Kirigami.AbstractCard {
Layout.fillHeight: true
contentItem: Kirigami.FormLayout {
......@@ -75,7 +75,7 @@ SimpleKCM {
footer: QQC2.Button {
icon.name: "view-refresh"
text: i18nc("@action:button", "Refresh")
onClicked: model.update();
onClicked: networkModel.update();
}
}
Supports Markdown
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