From 6e568f1d917f8c2407be44cef8766482b1fc0862 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sat, 2 Sep 2006 19:18:27 +0000 Subject: [PATCH] For windows, fall back to the file backend if a colon was in the URL name. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14785 57a11ea4-9604-0410-9ed3-97b8803252fd --- lib/libqof/qof/qofsession.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/libqof/qof/qofsession.c b/lib/libqof/qof/qofsession.c index 274d9fc822..4ad220dd7a 100644 --- a/lib/libqof/qof/qofsession.c +++ b/lib/libqof/qof/qofsession.c @@ -1006,6 +1006,15 @@ qof_session_begin (QofSession *session, const char * book_id, *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 {