mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
ff27834d6d
commit
6e568f1d91
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user