Skip to content

Commit

Permalink
Fixed issue #1857 (crash when closing window with properties dialog o…
Browse files Browse the repository at this point in the history
…pen)
  • Loading branch information
Matthias Koefferlein committed Sep 15, 2024
1 parent 491048d commit c917831
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/layview/layview/layLayoutView_qt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c917831

Please sign in to comment.