mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: don't change dive while editing
If the user taps on a dive in the dive list while a dive is being edited or added, ignore that tap. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0ce1dd80cc
commit
23b877a869
1 changed files with 5 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue