Fixed issue #1857 (crash when closing window with properties dialog open)

This commit is contained in:
Matthias Koefferlein 2024-09-15 17:00:31 +02:00
parent 491048db4c
commit c917831eb0
1 changed files with 5 additions and 4 deletions

View File

@ -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