Skip to content
Permalink
Browse files

Fix some attribute table columns do not remember their size

  • Loading branch information
nyalldawson committed Mar 27, 2018
1 parent 4d40202 commit 9551471ebffeb1ad3251f3006fe9ac4c1754dad1
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 9551471

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