Skip to content

Commit

Permalink
Close attribute dialog when layer is removed
Browse files Browse the repository at this point in the history
Fix #12336
  • Loading branch information
m-kuhn committed Mar 18, 2015
1 parent 66ba219 commit 40da097
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsattributedialog.cpp
Expand Up @@ -108,6 +108,7 @@ void QgsAttributeDialog::init( QgsVectorLayer* layer, QgsFeature* feature, const
QDialogButtonBox* buttonBox = mAttributeForm->findChild<QDialogButtonBox*>();
connect( buttonBox, SIGNAL( rejected() ), this, SLOT( reject() ) );
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
connect( layer, SIGNAL( layerDeleted() ), this, SLOT( close() ) );

QgsActionMenu* menu = new QgsActionMenu( layer, &mAttributeForm->feature(), this );
if ( menu->actions().size() > 0 )
Expand Down

0 comments on commit 40da097

Please sign in to comment.