This commit is contained in:
Nyall Dawson 2018-03-27 16:41:36 +10:00
parent 556668e067
commit d24f8a3c5b

View File

@ -916,7 +916,6 @@ void QgsDualView::setFeatureSelectionManager( QgsIFeatureSelectionManager *featu
void QgsDualView::setAttributeTableConfig( const QgsAttributeTableConfig &config ) void QgsDualView::setAttributeTableConfig( const QgsAttributeTableConfig &config )
{ {
mConfig = config; mConfig = config;
if ( mLayer )
mConfig.update( mLayer->fields() ); mConfig.update( mLayer->fields() );
mLayer->setAttributeTableConfig( mConfig ); mLayer->setAttributeTableConfig( mConfig );
mFilterModel->setAttributeTableConfig( mConfig ); mFilterModel->setAttributeTableConfig( mConfig );