Skip to content

Commit

Permalink
[forms] Fix default exp stored on rollback
Browse files Browse the repository at this point in the history
Fix #58767 default value stored even when clicking "Cancel"
  • Loading branch information
elpaso committed Sep 18, 2024
1 parent dfe6494 commit bfbbdac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/gui/vector/qgsattributesformproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,13 @@ void QgsAttributesFormProperties::loadAttributeSpecificEditor( QgsAttributesDnDT

if ( layout == Qgis::AttributeFormLayout::DragAndDrop )
storeAttributeWidgetEdit();
storeAttributeTypeDialog();
storeAttributeContainerEdit();

// Do not store while initializing!
if ( !mAvailableWidgetsTree->selectedItems().empty() )
{
storeAttributeTypeDialog();
storeAttributeContainerEdit();
}

clearAttributeTypeFrame();

Expand Down

0 comments on commit bfbbdac

Please sign in to comment.