gnucash maint: Bug 798649 - Crash when closing Edit Style Sheets dialog while...
John Ralls
jralls at code.gnucash.org
Fri Oct 28 14:40:25 EDT 2022
Updated via https://github.com/Gnucash/gnucash/commit/f5099b3d (commit)
from https://github.com/Gnucash/gnucash/commit/093aa81e (commit)
commit f5099b3d87a693991dfb3160f848ad218254b760
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Oct 28 11:37:18 2022 -0700
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.
diff --git a/gnucash/gnome/dialog-report-style-sheet.c b/gnucash/gnome/dialog-report-style-sheet.c
index a4f8d7527..1a4d4afc1 100644
--- a/gnucash/gnome/dialog-report-style-sheet.c
+++ b/gnucash/gnome/dialog-report-style-sheet.c
@@ -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);
Summary of changes:
gnucash/gnome/dialog-report-style-sheet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list