Skip to content

Commit 5e240b8

Browse files
committed
Fix add feature dialog for attribute-less layers
Fix #10351
1 parent d652a80 commit 5e240b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/gui/qgsattributeform.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ bool QgsAttributeForm::save()
137137
{
138138
bool doUpdate = false;
139139

140+
// An add dialog should perform an action by default
141+
// and not only if attributes have "changed"
142+
if ( mIsAddDialog )
143+
doUpdate = true;
144+
140145
QgsAttributes src = mFeature.attributes();
141146
QgsAttributes dst = mFeature.attributes();
142147

0 commit comments

Comments
 (0)