Skip to content
Permalink
Browse files

Close attribute dialog when layer is removed

Fix #12336
  • Loading branch information
m-kuhn committed Mar 18, 2015
1 parent e41fd54 commit 0134a97b9840864f81fa52e62d3f17bc85cd1ed1
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgsattributedialog.cpp
@@ -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 )

0 comments on commit 0134a97

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