Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
6 changes: 6 additions & 0 deletions src/app/layout/qgslayoutdesignerdialog.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit d5552cd

Please sign in to comment.