Fix crash on report designer close

This commit is contained in:
Nyall Dawson 2018-01-05 12:36:38 +10:00
parent 3db9c01021
commit 01ce9bccc4

View File

@ -39,7 +39,7 @@ QgsReportOrganizerWidget::QgsReportOrganizerWidget( QWidget *parent, QgsLayoutDe
setupUi( this );
setPanelTitle( tr( "Report" ) );
mSectionModel = new QgsReportSectionModel( mReport, mViewSections );
mSectionModel = new QgsReportSectionModel( mReport, this );
mViewSections->setModel( mSectionModel );
mViewSections->expandAll();