Kevin Finn's patch to make sure there is a main window if

loading a file fails.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4081 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-04-30 01:31:34 +00:00
parent e574465bec
commit 00b41bfb0f

View File

@ -338,6 +338,14 @@ gncPostFileOpen (const char * filename)
/* user told us to ignore locks. So ignore them. */
gnc_book_begin (new_book, newfile, TRUE, FALSE);
}
else
{
/* Can't use the given file, so just create a new
* database so that the user will get a window that
* they can click "Exit" on.
*/
gncFileNew();
}
}
/* if the database doesn't exist, ask the user ... */