diff --git a/gnucash/gnome-utils/dialog-options.c b/gnucash/gnome-utils/dialog-options.c index c6f48c1a7e2..50a654ee051 100644 --- a/gnucash/gnome-utils/dialog-options.c +++ b/gnucash/gnome-utils/dialog-options.c @@ -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);