mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4040 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
fb09b620fe
commit
8de13cac5e
@ -498,8 +498,10 @@ gnc_main_window_restore(GNCMainInfo * wind, char * filename) {
|
|||||||
GList * old_children = g_list_copy(wind->mdi->children);
|
GList * old_children = g_list_copy(wind->mdi->children);
|
||||||
GList * c;
|
GList * c;
|
||||||
|
|
||||||
if(!filename || !gnome_mdi_restore_state(GNOME_MDI(wind->mdi), session_name,
|
if(!filename ||
|
||||||
gnc_main_window_create_child)) {
|
!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);
|
gnc_main_window_open_accounts(0);
|
||||||
}
|
}
|
||||||
g_free(session_name);
|
g_free(session_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user