From 9495945584ea7fb5cdf7c0797ea3ee5e93dc26ce Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Tue, 5 Sep 2006 13:38:41 +0000 Subject: [PATCH] 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 --- lib/libqof/qof/qofsession.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libqof/qof/qofsession.c b/lib/libqof/qof/qofsession.c index c63ac07037..dbc46691af 100644 --- a/lib/libqof/qof/qofsession.c +++ b/lib/libqof/qof/qofsession.c @@ -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. */