mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: when manually adding a dive clear out all the fields
Otherwise the data from the last dive dispayed (or added) will be shown. Fixes #983 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4db5e840bf
commit
e20005ed36
1 changed files with 10 additions and 0 deletions
|
@ -54,6 +54,16 @@ MobileComponents.ApplicationWindow {
|
||||||
detailsWindow.dive_id = manager.addDive();
|
detailsWindow.dive_id = manager.addDive();
|
||||||
detailsWindow.number = manager.getNumber(detailsWindow.dive_id)
|
detailsWindow.number = manager.getNumber(detailsWindow.dive_id)
|
||||||
detailsWindow.date = manager.getDate(detailsWindow.dive_id)
|
detailsWindow.date = manager.getDate(detailsWindow.dive_id)
|
||||||
|
detailsWindow.airtemp = ""
|
||||||
|
detailsWindow.watertemp = ""
|
||||||
|
detailsWindow.buddy = ""
|
||||||
|
detailsWindow.depth = ""
|
||||||
|
detailsWindow.divemaster = ""
|
||||||
|
detailsWindow.notes = ""
|
||||||
|
detailsWindow.location = ""
|
||||||
|
detailsWindow.duration = ""
|
||||||
|
detailsWindow.suit = ""
|
||||||
|
detailsWindow.weight = ""
|
||||||
stackView.push(detailsWindow)
|
stackView.push(detailsWindow)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue