Skip to content

Commit

Permalink
Bug 796755 - buggy window handling at startup
Browse files Browse the repository at this point in the history
Defer showing the main window until after its size and location are
restored from the state file.
  • Loading branch information
jralls committed Jul 16, 2018
1 parent ff91056 commit c444729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnucash/gnome-utils/gnc-main-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,6 @@ gnc_main_window_restore_window (GncMainWindow *window, GncMainWindowSaveData *da
DEBUG("first window %p.", active_windows->data);
window = gnc_main_window_new();
}
gtk_widget_show(GTK_WIDGET(window));

priv = GNC_MAIN_WINDOW_GET_PRIVATE(window);

Expand Down Expand Up @@ -906,6 +905,7 @@ gnc_main_window_restore_window (GncMainWindow *window, GncMainWindowSaveData *da
if (error)
g_error_free(error);
g_free(window_group);
gtk_widget_show(GTK_WIDGET(window));
}

void
Expand Down

0 comments on commit c444729

Please sign in to comment.