Skip to content

Commit

Permalink
[ogr provider] less debug output and remove useless Qt version check (#…
Browse files Browse the repository at this point in the history
…7949)

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

* Update qgsogrprovider.cpp
  • Loading branch information
3nids authored Sep 18, 2018
1 parent 42573f7 commit 7233c60
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/providers/ogr/qgsogrprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7233c60

Please sign in to comment.