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
This commit is contained in:
Christian Stimming 2006-09-02 19:18:27 +00:00
parent ff27834d6d
commit 6e568f1d91

View File

@ -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
{