From b29f6ef2c0fa0cabdfee5e7a22306948f57157fa Mon Sep 17 00:00:00 2001 From: Jocke Date: Tue, 2 Oct 2018 17:22:09 +0200 Subject: 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 --- mobile-widgets/qml/Settings.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mobile-widgets/qml') 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 = "" } } } -- cgit v1.2.3-70-g09d2