Skip to content

Commit

Permalink
Error in trace file for Dialog Options
Browse files Browse the repository at this point in the history
When the New Account Hierarchy Assistant is used, the book options are
added to the assistant as a notebook page and so will not have a parent
widget to be used when restoring the window size so test for parent
before using gnc_restore_window_size
  • Loading branch information
Bob-IT committed Jun 14, 2020
1 parent 1d055b6 commit 4ca52b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnucash/gnome-utils/dialog-options.c
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,8 @@ gnc_options_dialog_new_modal(gboolean modal, gchar *title,

gtk_builder_connect_signals_full (builder, gnc_builder_connect_full_func, retval);

gnc_restore_window_size (GNC_PREFS_GROUP, GTK_WINDOW(retval->window), parent);
if (parent) // when added to a page of the hierarchy assistant there will be no parent
gnc_restore_window_size (GNC_PREFS_GROUP, GTK_WINDOW(retval->window), parent);

if (title)
gtk_window_set_title(GTK_WINDOW(retval->window), title);
Expand Down

0 comments on commit 4ca52b2

Please sign in to comment.