Skip to content

Commit

Permalink
Prevent data loss by disabling swipe-to-close feature form gesture wh…
Browse files Browse the repository at this point in the history
…ile editing (fixes #5084)
  • Loading branch information
nirvn committed Jun 20, 2024
1 parent 2a4058c commit 095e1ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/qml/FeatureListForm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ Rectangle {
if ( fullScreenView ) {
fullScreenView = false
} else {
featureForm.state = 'Hidden'
if (featureForm.state != 'FeatureFormEdit') {
featureForm.state = 'Hidden'
}
}
}
} else {
Expand All @@ -426,7 +428,9 @@ Rectangle {
if ( fullScreenView ) {
fullScreenView = false
} else {
featureForm.state = 'Hidden'
if (featureForm.state != 'FeatureFormEdit') {
featureForm.state = 'Hidden'
}
}
}
}
Expand Down

1 comment on commit 095e1ee

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.