Skip to content
Permalink
Browse files

Fix some attribute table columns do not remember their size

(cherry-picked from 9551471)
  • Loading branch information
nyalldawson committed Apr 2, 2018
1 parent a9606ea commit deac23972758ee9c0a3540a9b542ba92b887eee8
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/gui/attributetable/qgsdualview.cpp
@@ -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 )

0 comments on commit deac239

Please sign in to comment.
You can’t perform that action at this time.