Skip to content
Browse files
[processing] Don't try to force load files which don't exist
  • Loading branch information
nyalldawson committed Nov 7, 2016
1 parent 272cd38 commit b4bca5bb98de1f3ba01c08be768f94f3ddcd3bbd
Showing 1 changed file with 1 addition and 1 deletion.
@@ -267,7 +267,7 @@ def getObjectFromUri(uri, forceLoad=True):
for table in tables:
if normalizeLayerSource(table.source()) == normalizeLayerSource(uri):
return table
if forceLoad:
if forceLoad and os.path.exists(uri):
settings = QSettings()
prjSetting = settings.value('/Projections/defaultBehaviour')
settings.setValue('/Projections/defaultBehaviour', '')

0 comments on commit b4bca5b

Please sign in to comment.