Skip to content
Permalink
Browse files

geopackage : fix detection of network paths for windows

(Qt's absolutePath returns forward slashes on Win too)
  • Loading branch information
olivierdalang committed May 26, 2020
1 parent 38673f5 commit 89e272007d7a9458c1da831298a489d3ce3a35ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/providers/ogr/qgsogrprovider.cpp
@@ -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] == '/' ) )

0 comments on commit 89e2720

Please sign in to comment.
You can’t perform that action at this time.