Skip to content

Commit b7f1987

Browse files
committed
[Fix #7877] Crash when saving layer style as qml
1 parent bb04e70 commit b7f1987

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/qgsfieldsproperties.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ void QgsFieldsProperties::loadRows()
283283
disconnect( mAttributesList, SIGNAL( cellChanged( int, int ) ), this, SLOT( attributesListCellChanged( int, int ) ) );
284284
const QgsFields &fields = mLayer->pendingFields();
285285

286+
mIndexedWidgets.clear();
286287
mAttributesList->clear();
288+
mAttributesList->setRowCount( 0 );
287289

288290
mAttributesList->setColumnCount( attrColCount );
289291
mAttributesList->setSelectionBehavior( QAbstractItemView::SelectRows );

0 commit comments

Comments
 (0)