mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
e574465bec
commit
00b41bfb0f
@ -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 ... */
|
||||
|
Loading…
Reference in New Issue
Block a user