Skip to content

Commit

Permalink
When setting up our tracking feature, we avoid saving at all times, m…
Browse files Browse the repository at this point in the history
…ake relations accept that reality
  • Loading branch information
nirvn committed Nov 13, 2024
1 parent c233436 commit 8092a99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ EditorWidgetBase {
repeat: false

onTriggered: {
let saved = form.state === 'Add' ? save() : true;
let saved = form.state === 'Add' ? !form.setupOnly && save() : true;
if (ProjectUtils.transactionMode(qgisProject) !== Qgis.TransactionMode.Disabled) {
// When a transaction mode is enabled, we must fallback to saving the parent feature to have provider-side issues
if (!saved) {
Expand Down
2 changes: 1 addition & 1 deletion src/qml/editorwidgets/relationeditors/relation_editor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ EditorWidgetBase {
repeat: false

onTriggered: {
let saved = form.state === 'Add' ? save() : true;
let saved = form.state === 'Add' ? !form.setupOnly && save() : true;
if (ProjectUtils.transactionMode(qgisProject) !== Qgis.TransactionMode.Disabled) {
// When a transaction mode is enabled, we must fallback to saving the parent feature to have provider-side issues
if (!saved) {
Expand Down

1 comment on commit 8092a99

@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.