Skip to content
Permalink
Browse files
Auto close item properties widget when item is deleted
  • Loading branch information
nyalldawson committed Sep 4, 2017
1 parent ddb3198 commit d5552cd
Showing 1 changed file with 6 additions and 0 deletions.
@@ -357,8 +357,14 @@ void QgsLayoutDesignerDialog::showItemOptions( QgsLayoutItem *item )

delete mItemPropertiesStack->takeMainPanel();
widget->setDockMode( true );
connect( item, &QgsLayoutItem::destroyed, widget.get(), [this]
{
delete mItemPropertiesStack->takeMainPanel();
} );

mItemPropertiesStack->setMainPanel( widget.release() );
mItemDock->setUserVisible( true );

}

void QgsLayoutDesignerDialog::open()

0 comments on commit d5552cd

Please sign in to comment.