Skip to content

Commit

Permalink
geopackage : fix detection of network paths for windows
Browse files Browse the repository at this point in the history
(Qt's absolutePath returns forward slashes on Win too)
  • Loading branch information
olivierdalang committed May 26, 2020
1 parent 38673f5 commit 89e2720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -4047,7 +4047,7 @@ static bool IsLocalFile( const QString &path )
// Start with the OS specific methods since the QT >= 5.4 method just
// return a string and not an enumerated type.
#if defined(Q_OS_WIN)
if ( dirName.startsWith( "\\\\" ) )
if ( dirName.startsWith( "\\\\" ) || dirName.startsWith( "//" ) )
return false;
if ( dirName.length() >= 3 && dirName[1] == ':' &&
( dirName[2] == '\\' || dirName[2] == '/' ) )
Expand Down

0 comments on commit 89e2720

Please sign in to comment.