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 12, 2024
1 parent 058971b commit d30b797
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

0 comments on commit d30b797

Please sign in to comment.