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
|
// When clicked, the mode changes to details view
|
||||||
onClicked: {
|
onClicked: {
|
||||||
diveListView.currentIndex = index
|
if (detailsWindow.state === "view") {
|
||||||
detailsWindow.showDiveIndex(index);
|
diveListView.currentIndex = index
|
||||||
stackView.push(detailsWindow);
|
detailsWindow.showDiveIndex(index);
|
||||||
|
stackView.push(detailsWindow);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue