diff options
author | Grace Karanja <gracie.karanja89@gmail.com> | 2015-08-20 11:44:01 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-31 15:49:09 -0700 |
commit | cd28082c395002e027f682500670e79b934b9cf8 (patch) | |
tree | 3d49546a5198499b4e2a356dc6e66b0fcac1abfc /qt-mobile/TopBar.qml | |
parent | 89c7e4cd67eee5c24c107e36d44370b4772ad15d (diff) | |
download | subsurface-cd28082c395002e027f682500670e79b934b9cf8.tar.gz |
QML UI: Fix error when closing the log window
When closing the log window, do not try to save the changes. This
should only be done when closing the DiveDetails.
Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
Diffstat (limited to 'qt-mobile/TopBar.qml')
-rw-r--r-- | qt-mobile/TopBar.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-mobile/TopBar.qml b/qt-mobile/TopBar.qml index 1e34fcebc..1edd868c2 100644 --- a/qt-mobile/TopBar.qml +++ b/qt-mobile/TopBar.qml @@ -42,6 +42,8 @@ Rectangle { } } onClicked: { + if (stackView.currentItem.objectName == "DiveDetails") + { manager.commitChanges( dive_id, suit, @@ -49,6 +51,7 @@ Rectangle { divemaster, notes ) + } stackView.pop(); } } |