Skip to content

Commit

Permalink
assign parent to model
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Nov 30, 2015
1 parent bffb3a5 commit 834f8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsattributetabledialog.cpp
Expand Up @@ -242,7 +242,7 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *theLayer, QWid

mUpdateExpressionText->registerGetExpressionContextCallback( &_getExpressionContext, mLayer );

mFieldModel = new QgsFieldModel();
mFieldModel = new QgsFieldModel( this );
mFieldModel->setLayer( mLayer );
mFieldCombo->setModel( mFieldModel );
connect( mRunFieldCalc, SIGNAL( clicked() ), this, SLOT( updateFieldFromExpression() ) );
Expand Down

0 comments on commit 834f8d5

Please sign in to comment.