mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:43:23 +00:00
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>
This commit is contained in:
parent
c31d517b8f
commit
b29f6ef2c0
1 changed files with 5 additions and 5 deletions
|
@ -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 = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue