summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Jocke <j.bygdell@gmail.com>2018-10-02 17:22:09 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-10-02 18:40:47 +0200
commitb29f6ef2c0fa0cabdfee5e7a22306948f57157fa (patch)
tree0b028307d0a926a8b2f1bd09a5883c04a82cc5a5 /mobile-widgets/qml
parentc31d517b8f6fb227b6a3d47f81e98a1d5132856e (diff)
downloadsubsurface-b29f6ef2c0fa0cabdfee5e7a22306948f57157fa.tar.gz
Mobile: remove all related data when forgetting DCs
We need to delete all related data when forgetting dive computers or we will have an issue if we connect a DC from the same vendor but of a different model. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/Settings.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml
index bbdd3215b..2b5e337f8 100644
--- a/mobile-widgets/qml/Settings.qml
+++ b/mobile-widgets/qml/Settings.qml
@@ -410,11 +410,11 @@ Kirigami.ScrollablePage {
text: qsTr("Forget")
enabled: PrefDiveComputer.vendor1 !== ""
onClicked: {
- PrefDiveComputer.vendor1 = ""
- PrefDiveComputer.vendor2 = ""
- PrefDiveComputer.vendor3 = ""
- PrefDiveComputer.vendor4 = ""
- PrefDiveComputer.vendor = ""
+ PrefDiveComputer.vendor1 = PrefDiveComputer.product1 = PrefDiveComputer.device1 = ""
+ PrefDiveComputer.vendor2 = PrefDiveComputer.product2 = PrefDiveComputer.device2 = ""
+ PrefDiveComputer.vendor3 = PrefDiveComputer.product3 = PrefDiveComputer.device3 = ""
+ PrefDiveComputer.vendor4 = PrefDiveComputer.product4 = PrefDiveComputer.device4 = ""
+ PrefDiveComputer.vendor = PrefDiveComputer.product = PrefDiveComputer.device = ""
}
}
}