Skip to content
Permalink
Browse files

[ogr provider] less debug output and remove useless Qt version check (#…

…7949)

* [ogr provider] less debbug output and remove useless Qt version check

* Update qgsogrprovider.cpp
  • Loading branch information
3nids committed Sep 18, 2018
1 parent 42573f7 commit 7233c604b1c8abfa617027433266ff8a6ede31ee
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/providers/ogr/qgsogrprovider.cpp
@@ -3710,13 +3710,13 @@ static bool IsLocalFile( const QString &path )
}
}
return true;
#elif QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
QStorageInfo info( dirName );
QString fileSystem( info.fileSystemType() );
QgsDebugMsg( QString( "Filesystem for %1 is %2" ).arg( path ).arg( fileSystem ) );
return path != "nfs" && path != "smbfs";
#else
return true;
QStorageInfo info( dirName );
const QString fileSystem( info.fileSystemType() );
bool isLocal = path != QLatin1String( "nfs" ) && path != QLatin1String( "smbfs" );
if ( !isLocal )
QgsDebugMsg( QStringLiteral( "Filesystem for %1 is %2" ).arg( path, fileSystem ) );
return isLocal;
#endif
}

0 comments on commit 7233c60

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