mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
b84308bcfb
commit
7f628404e6
1 changed files with 10 additions and 0 deletions
|
@ -56,6 +56,16 @@ MobileComponents.Page {
|
||||||
manager.commitChanges(dive_id, detailsEdit.locationText, detailsEdit.gpsText, detailsEdit.durationText,
|
manager.commitChanges(dive_id, detailsEdit.locationText, detailsEdit.gpsText, detailsEdit.durationText,
|
||||||
detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, detailsEdit.suitText,
|
detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, detailsEdit.suitText,
|
||||||
detailsEdit.buddyText, detailsEdit.divemasterText, detailsEdit.notesText)
|
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"
|
diveDetailsWindow.state = "view"
|
||||||
} else {
|
} else {
|
||||||
diveDetailsWindow.state = "edit"
|
diveDetailsWindow.state = "edit"
|
||||||
|
|
Loading…
Add table
Reference in a new issue