git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4040 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-04-24 23:31:45 +00:00
parent fb09b620fe
commit 8de13cac5e

View File

@ -498,8 +498,10 @@ gnc_main_window_restore(GNCMainInfo * wind, char * filename) {
GList * old_children = g_list_copy(wind->mdi->children);
GList * c;
if(!filename || !gnome_mdi_restore_state(GNOME_MDI(wind->mdi), session_name,
gnc_main_window_create_child)) {
if(!filename ||
!gnome_mdi_restore_state(GNOME_MDI(wind->mdi), session_name,
gnc_main_window_create_child) ||
wind->mdi->children == NULL) {
gnc_main_window_open_accounts(0);
}
g_free(session_name);