Skip to content
Permalink
Browse files

Auto close item properties widget when item is deleted

  • Loading branch information
nyalldawson committed Sep 1, 2017
1 parent ddb3198 commit d5552cdadee23ed8dc596e6f6be869cc27eb9a66
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -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.
You can’t perform that action at this time.