[layouts] Fix crash when deleting layouts from designer window

Fixes #32465
This commit is contained in:
Nyall Dawson 2019-10-29 13:38:45 +10:00
parent dd98331ace
commit e643e7f6ab

View File

@ -990,7 +990,6 @@ void QgsLayoutDesignerDialog::setMasterLayout( QgsMasterLayoutInterface *layout
connect( obj, &QObject::destroyed, this, [ = ]
{
this->close();
QgsApplication::sendPostedEvents( nullptr, QEvent::DeferredDelete );
} );
setTitle( mMasterLayout->name() );