* src/gnome/top-level.c: check for no children when creating default

window


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3977 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas
2001-04-15 23:27:39 +00:00
parent 528118cc99
commit 67c7ed199e
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2001-04-15 Dave Peticolas <dave@krondo.com>
* src/gnome/top-level.c: check for no children when creating default
window
* src/gnome/window-main.c: Kevin Finn's patch to shutdown gnucash
when the main window is deleted. Handle remove_child events to
prevent accessing deleted windows.

View File

@@ -337,7 +337,8 @@ void
gnc_default_ui_start(void) {
if(!hasstarted) {
if(!gnome_mdi_restore_state(app->mdi, "/GnuCash/MDI Session",
gnc_main_window_create_child)) {
gnc_main_window_create_child) ||
app->children == NULL) {
gnc_main_window_open_accounts(FALSE);
}
hasstarted = TRUE;