summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/settingsui/network/EditWiredSettings.qml9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/settingsui/network/EditWiredSettings.qml b/src/settingsui/network/EditWiredSettings.qml
index 97f04dd..857c8e9 100644
--- a/src/settingsui/network/EditWiredSettings.qml
+++ b/src/settingsui/network/EditWiredSettings.qml
@@ -74,6 +74,7 @@ Item {
anchors.fill: parent
ComboBoxEntry {
+ id: ipv4Method
title: qsTr("Connection method:")
titleWidth: content.titleWidth
model: ListModel {
@@ -92,7 +93,6 @@ Item {
method: NetworkSettingsIPv4.Off
}
}
- Component.onCompleted: currentIndex = service.ipv4.method
onCurrentIndexChanged: {
ipv4Changed = true;
service.ipv4.method = model.get(currentIndex).method;
@@ -156,6 +156,7 @@ Item {
anchors.fill: parent
ComboBoxEntry {
+ id: ipv6Method
title: qsTr("Connection method:")
titleWidth: content.titleWidth
model: ListModel {
@@ -175,8 +176,6 @@ Item {
}
}
- Component.onCompleted: currentIndex = service.ipv6.method
-
onCurrentIndexChanged: {
ipv6Changed = true;
service.ipv6.method = model.get(currentIndex).method;
@@ -360,4 +359,8 @@ Item {
stackView.pop();
}
}
+ onServiceChanged: {
+ ipv4Method.currentIndex = service.ipv4.method
+ ipv6Method.currentIndex = service.ipv6.method
+ }
}