From c917831eb04c28003d8aa1a5b03d1a11927593a4 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 15 Sep 2024 17:00:31 +0200 Subject: [PATCH] Fixed issue #1857 (crash when closing window with properties dialog open) --- src/layview/layview/layLayoutView_qt.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/layview/layview/layLayoutView_qt.cc b/src/layview/layview/layLayoutView_qt.cc index 86aeaf774..7fb3d76e4 100644 --- a/src/layview/layview/layLayoutView_qt.cc +++ b/src/layview/layview/layLayoutView_qt.cc @@ -650,6 +650,11 @@ void LayoutView::close() ms_current = 0; } + if (mp_properties_dialog) { + // must happen before "shutdown" (issue #1857) + delete mp_properties_dialog.data (); + } + // release all components and plugins before we delete the user interface shutdown (); @@ -687,10 +692,6 @@ void LayoutView::close() } mp_bookmarks_frame = 0; mp_bookmarks_view = 0; - - if (mp_properties_dialog) { - delete mp_properties_dialog.data (); - } } void