Skip to content

Commit

Permalink
Fix some attribute table columns do not remember their size
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 27, 2018
1 parent 4d40202 commit 9551471
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -916,9 +916,11 @@ void QgsDualView::setFeatureSelectionManager( QgsIFeatureSelectionManager *featu
void QgsDualView::setAttributeTableConfig( const QgsAttributeTableConfig &config )
{
mConfig = config;
mLayer->setAttributeTableConfig( config );
mFilterModel->setAttributeTableConfig( config );
mTableView->setAttributeTableConfig( config );
if ( mLayer )
mConfig.update( mLayer->fields() );
mLayer->setAttributeTableConfig( mConfig );
mFilterModel->setAttributeTableConfig( mConfig );
mTableView->setAttributeTableConfig( mConfig );
}

void QgsDualView::setSortExpression( const QString &sortExpression, Qt::SortOrder sortOrder )
Expand Down

0 comments on commit 9551471

Please sign in to comment.