We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcb50a6 commit 9da5fd3Copy full SHA for 9da5fd3
src/gui/qgsattributeform.cpp
@@ -572,9 +572,26 @@ bool QgsAttributeForm::saveMultiEdits()
572
573
bool QgsAttributeForm::save()
574
{
575
- if ( mIsSaving || !mDirty )
+ if ( mIsSaving )
576
return true;
577
578
+ // only do the dirty checks when editing an existing feature - for new
579
+ // features we need to add them even if the attributes are unchanged from the initial
580
+ // default values
581
+ switch ( mMode )
582
+ {
583
+ case SingleEditMode:
584
+ case MultiEditMode:
585
+ if ( !mDirty )
586
+ return true;
587
+ break;
588
+
589
+ case AddFeatureMode:
590
+ case SearchMode:
591
+ case AggregateSearchMode:
592
593
+ }
594
595
mIsSaving = true;
596
597
bool success = true;
0 commit comments