diff options
-rw-r--r-- | qt-mobile/qml/DiveList.qml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml index 042376c37..d7fb5fdca 100644 --- a/qt-mobile/qml/DiveList.qml +++ b/qt-mobile/qml/DiveList.qml @@ -171,7 +171,7 @@ Kirigami.ScrollablePage { if (visible) { page.mainAction = page.saveAction } else { - page.mainAction = null + page.mainAction = page.addDiveAction } } @@ -215,6 +215,12 @@ Kirigami.ScrollablePage { } } + property QtObject addDiveAction: Action { + iconName: "list-add" + onTriggered: { + startAddDive() + } + } property QtObject saveAction: Action { iconName: "document-save" |