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
(cherry-picked from 9551471)
  • Loading branch information
nyalldawson committed Apr 2, 2018
1 parent a9606ea commit deac239
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/gui/attributetable/qgsdualview.cpp
Original file line number Diff line number Diff line change
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 deac239

Please sign in to comment.