aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveList.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile/qml/DiveList.qml')
-rw-r--r--qt-mobile/qml/DiveList.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml
index 298680682..a36758a98 100644
--- a/qt-mobile/qml/DiveList.qml
+++ b/qt-mobile/qml/DiveList.qml
@@ -26,9 +26,11 @@ MobileComponents.Page {
// When clicked, the mode changes to details view
onClicked: {
- diveListView.currentIndex = index
- detailsWindow.showDiveIndex(index);
- stackView.push(detailsWindow);
+ if (detailsWindow.state === "view") {
+ diveListView.currentIndex = index
+ detailsWindow.showDiveIndex(index);
+ stackView.push(detailsWindow);
+ }
}
Item {