QML UI: refresh UI after editing / adding a dive

This way the properties of the shown list element are updated based on what was
edited. This feels weird and backwards - but it appears to be the way to do
this - you literally update the elemnts in this specific instance of that QML
page.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-12-31 18:10:03 -08:00
parent b84308bcfb
commit 7f628404e6

View file

@ -56,6 +56,16 @@ MobileComponents.Page {
manager.commitChanges(dive_id, detailsEdit.locationText, detailsEdit.gpsText, detailsEdit.durationText,
detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, detailsEdit.suitText,
detailsEdit.buddyText, detailsEdit.divemasterText, detailsEdit.notesText)
location = detailsEdit.locationText
// gps = detailsEdit.gps
// duration = detailsEdit.durationText
// depth = detailsEdit.depthText
airtemp = detailsEdit.airtempText
watertemp = detailsEdit.watertempText
suit = detailsEdit.suitText
buddy = detailsEdit.buddyText
divemaster = detailsEdit.divemasterText
notes = detailsEdit.notesText
diveDetailsWindow.state = "view"
} else {
diveDetailsWindow.state = "edit"