summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveDetails.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-02 17:59:59 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-02 17:59:59 -0500
commit410fd222d15dca8673606133499cefde780f163b (patch)
treec933db26d89549d028db067eabda7c8c47b4f9bd /qt-mobile/qml/DiveDetails.qml
parent162d07086bc2c0e6f3ca16ed0ea581b1c12a7c88 (diff)
downloadsubsurface-410fd222d15dca8673606133499cefde780f163b.tar.gz
QML UI: make sure the correct data is in the bread crumbs
Once again this requires changes that aren't upstream in Kirigami. But with this the bread crumbs update when the user swipes from dive to dive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r--qt-mobile/qml/DiveDetails.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index dd5fb3c62..2b2d4da38 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -34,6 +34,10 @@ Kirigami.Page {
title: diveDetailsListView.currentItem.modelData.dive.location
state: "view"
+ onTitleChanged: {
+ header.updateBreadCrumbs()
+ }
+
states: [
State {
name: "view"