Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Fix #7877] Crash when saving layer style as qml
  • Loading branch information
m-kuhn committed May 22, 2013
1 parent bb04e70 commit b7f1987
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsfieldsproperties.cpp
Expand Up @@ -283,7 +283,9 @@ void QgsFieldsProperties::loadRows()
disconnect( mAttributesList, SIGNAL( cellChanged( int, int ) ), this, SLOT( attributesListCellChanged( int, int ) ) );
const QgsFields &fields = mLayer->pendingFields();

mIndexedWidgets.clear();
mAttributesList->clear();
mAttributesList->setRowCount( 0 );

mAttributesList->setColumnCount( attrColCount );
mAttributesList->setSelectionBehavior( QAbstractItemView::SelectRows );
Expand Down

0 comments on commit b7f1987

Please sign in to comment.