Skip to content

Commit 40da097

Browse files
committed
Close attribute dialog when layer is removed
Fix #12336
1 parent 66ba219 commit 40da097

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gui/qgsattributedialog.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ void QgsAttributeDialog::init( QgsVectorLayer* layer, QgsFeature* feature, const
108108
QDialogButtonBox* buttonBox = mAttributeForm->findChild<QDialogButtonBox*>();
109109
connect( buttonBox, SIGNAL( rejected() ), this, SLOT( reject() ) );
110110
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
111+
connect( layer, SIGNAL( layerDeleted() ), this, SLOT( close() ) );
111112

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

0 commit comments

Comments
 (0)