Skip to content
Permalink
Browse files

Avoid crash when closing model designer

  • Loading branch information
nyalldawson committed Mar 11, 2020
1 parent 115f5e4 commit 50119859d1e3347fcb902fb4300534baafb2ab3d
@@ -244,6 +244,7 @@ QgsModelDesignerDialog::QgsModelDesignerDialog( QWidget *parent, Qt::WindowFlags
QgsModelDesignerDialog::~QgsModelDesignerDialog()
{
mIgnoreUndoStackChanges++;
delete mSelectTool; // delete mouse handles before everything else
}

void QgsModelDesignerDialog::closeEvent( QCloseEvent *event )
@@ -38,7 +38,7 @@ QgsModelViewToolSelect::~QgsModelViewToolSelect()
// want to force them to be removed from the scene
if ( mMouseHandles->scene() )
mMouseHandles->scene()->removeItem( mMouseHandles );
mMouseHandles->deleteLater();
delete mMouseHandles;
}
}

0 comments on commit 5011985

Please sign in to comment.
You can’t perform that action at this time.