mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: exit edit mode when navigating away from edit page
Navigating using the breadcrumb in the header did leave the dive detail edit (and add) mode in such a way that (for example) navigation in the dive list was suspended. Obviously, it is debatable what should be done. Saving the edits/add, or cancelling them. For now, this commit cancels them silently. This is the exact same thing that is happening when the user selects the dive list from the drawer menu. Fixes: #932 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
7b88f8301e
commit
825afb4db4
2 changed files with 12 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ import org.kde.kirigami 2.2 as Kirigami
|
|||
|
||||
Kirigami.Page {
|
||||
id: diveDetailsPage // but this is referenced as detailsWindow
|
||||
objectName: "DiveDetails"
|
||||
property alias currentIndex: diveDetailsListView.currentIndex
|
||||
property alias currentItem: diveDetailsListView.currentItem
|
||||
property alias dive_id: detailsEdit.dive_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue