diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-16 11:21:20 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-17 08:51:04 -0800 |
commit | b25e791d1315eea20c145007e0f35b31aa736040 (patch) | |
tree | 53d375f42d0d90b7cc687d45530e068dd3a0ff1c /mobile-widgets/qml/main.qml | |
parent | 59d72474d687a2d35517d804c7af4de7ae0b63af (diff) | |
download | subsurface-b25e791d1315eea20c145007e0f35b31aa736040.tar.gz |
mobile-widgets/qml: main reference qPrefGeneral.default_cylinder wrongly
change qPrefGeneral.default_cylinder -> qPrefEquipment.default_cylinder
Signed-off-by: jan Iversen <jan@casacondor.com>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 78d10e46c..a38675319 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -150,7 +150,7 @@ Kirigami.ApplicationWindow { detailsWindow.cylinderModel2 = manager.cylinderInit detailsWindow.cylinderModel3 = manager.cylinderInit detailsWindow.cylinderModel4 = manager.cylinderInit - detailsWindow.cylinderIndex0 = PrefGeneral.default_cylinder == "" ? -1 : detailsWindow.cylinderModel0.indexOf(PrefGeneral.default_cylinder) + detailsWindow.cylinderIndex0 = PrefEquipment.default_cylinder == "" ? -1 : detailsWindow.cylinderModel0.indexOf(PrefEquipment.default_cylinder) detailsWindow.usedCyl = ["",] detailsWindow.weight = "" detailsWindow.usedGas = [] @@ -412,7 +412,7 @@ if you have network connectivity and want to sync your data to cloud storage."), onTriggered: { globalDrawer.close() settingsWindow.defaultCylinderModel = manager.cylinderInit - PrefGeneral.default_cylinder === "" ? defaultCylinderIndex = "-1" : defaultCylinderIndex = settingsWindow.defaultCylinderModel.indexOf(PrefGeneral.default_cylinder) + PrefEquipment.default_cylinder === "" ? defaultCylinderIndex = "-1" : defaultCylinderIndex = settingsWindow.defaultCylinderModel.indexOf(PrefEquipment.default_cylinder) pageStack.push(settingsWindow) detailsWindow.endEditMode() } |