For windows, clean up error conditions before trying again to load the session.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14796 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2006-09-05 13:38:41 +00:00
parent 8a25065a54
commit 9495945584

View File

@ -1009,6 +1009,9 @@ qof_session_begin (QofSession *session, const char * book_id,
#ifdef G_OS_WIN32
if (NULL == session->backend)
{
/* Clear the error condition of previous errors */
qof_session_clear_error (session);
/* On windows, a colon can be part of a normal filename. So if
no backend was found (which means the part before the colon
wasn't an access method), fall back to the file backend. */