diff options
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 3 | ||||
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 263820a46..5953c1f86 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -162,9 +162,8 @@ Kirigami.ScrollablePage { anchors.fill: parent enabled: parent.visible onClicked: { - parent.visible = false + deleteButtonVisible = false timer.stop() - detailsWindow.showDiveIndex(index) manager.deleteDive(dive.id) } } diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 296243f7e..91c73752c 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1244,6 +1244,7 @@ void QMLManager::deleteDive(int id) } DiveListModel::instance()->removeDiveById(id); delete_single_dive(get_idx_by_uniq_id(id)); + DiveListModel::instance()->resetInternalData(); changesNeedSaving(); } |