Bug 798649 - Crash when closing Edit Style Sheets dialog while...

Style Sheet Properties dialog is still open.

Because the style_sheet_dialog is already destroyed and nulled.
This commit is contained in:
John Ralls 2022-10-28 11:37:18 -07:00
parent 093aa81ed1
commit f5099b3d87

View File

@ -138,7 +138,7 @@ gnc_style_sheet_options_close_cb (GNCOptionWin * propertybox,
ss_info * ssi = user_data;
GtkTreeIter iter;
if (gtk_tree_row_reference_valid (ssi->row_ref))
if (gnc_style_sheet_dialog && gtk_tree_row_reference_valid (ssi->row_ref))
{
StyleSheetDialog * ss = gnc_style_sheet_dialog;
GtkTreePath *path = gtk_tree_row_reference_get_path (ssi->row_ref);