r14796 - gnucash/trunk/lib/libqof/qof - For windows, clean up error conditions before trying again to load the session.
Christian Stimming
cstim at cvs.gnucash.org
Tue Sep 5 09:38:42 EDT 2006
Author: cstim
Date: 2006-09-05 09:38:41 -0400 (Tue, 05 Sep 2006)
New Revision: 14796
Trac: http://svn.gnucash.org/trac/changeset/14796
Modified:
gnucash/trunk/lib/libqof/qof/qofsession.c
Log:
For windows, clean up error conditions before trying again to load the session.
Modified: gnucash/trunk/lib/libqof/qof/qofsession.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofsession.c 2006-09-04 16:27:31 UTC (rev 14795)
+++ gnucash/trunk/lib/libqof/qof/qofsession.c 2006-09-05 13:38:41 UTC (rev 14796)
@@ -1009,6 +1009,9 @@
#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. */
More information about the gnucash-changes
mailing list