diff options
-rw-r--r-- | qt-mobile/qml/DiveDetailsEdit.qml | 3 | ||||
-rw-r--r-- | qt-mobile/qmlprofile.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/qt-mobile/qml/DiveDetailsEdit.qml b/qt-mobile/qml/DiveDetailsEdit.qml index c2f468d98..dc816665e 100644 --- a/qt-mobile/qml/DiveDetailsEdit.qml +++ b/qt-mobile/qml/DiveDetailsEdit.qml @@ -32,6 +32,9 @@ Item { detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, detailsEdit.suitText, detailsEdit.buddyText, detailsEdit.divemasterText, detailsEdit.weightText, detailsEdit.notesText, detailsEdit.startpressureText, detailsEdit.endpressureText, detailsEdit.gasmixText) + // trigger the profile to be redrawn + QMLProfile.diveId = dive_id + // apply the changes to the dive detail view - since the edit could have changed the order // first make sure that we are looking at the correct dive - our model allows us to look // up the index based on the unique dive_id diff --git a/qt-mobile/qmlprofile.cpp b/qt-mobile/qmlprofile.cpp index 7ff95db9b..512aa6a3a 100644 --- a/qt-mobile/qmlprofile.cpp +++ b/qt-mobile/qmlprofile.cpp @@ -53,7 +53,7 @@ void QMLProfile::setDiveId(const QString &diveId) if (!d) return; qDebug() << "setDiveId called with valid dive" << d->number; - m_profileWidget->plotDive(d); + m_profileWidget->plotDive(d, true); } qreal QMLProfile::devicePixelRatio() const |