[processing] Don't try to force load files which don't exist

This commit is contained in:
Nyall Dawson 2016-11-07 10:03:56 +10:00
parent 272cd38018
commit b4bca5bb98

View File

@ -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', '')