r14785 - gnucash/trunk/lib/libqof/qof - For windows, fall back to the file backend if a colon was in the URL name.
Christian Stimming
cstim at cvs.gnucash.org
Sat Sep 2 15:18:28 EDT 2006
Author: cstim
Date: 2006-09-02 15:18:27 -0400 (Sat, 02 Sep 2006)
New Revision: 14785
Trac: http://svn.gnucash.org/trac/changeset/14785
Modified:
gnucash/trunk/lib/libqof/qof/qofsession.c
Log:
For windows, fall back to the file backend if a colon was in the URL name.
Modified: gnucash/trunk/lib/libqof/qof/qofsession.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofsession.c 2006-09-02 15:44:45 UTC (rev 14784)
+++ gnucash/trunk/lib/libqof/qof/qofsession.c 2006-09-02 19:18:27 UTC (rev 14785)
@@ -1006,6 +1006,15 @@
*p = '\0';
qof_session_load_backend(session, access_method);
g_free (access_method);
+#if G_OS_WIN32
+ if (NULL == session->backend)
+ {
+ /* 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. */
+ qof_session_load_backend(session, "file");
+ }
+#endif
}
else
{
More information about the gnucash-changes
mailing list