1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-04-28 00:05:04 -04:00

[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

@ -267,7 +267,7 @@ def getObjectFromUri(uri, forceLoad=True):
for table in tables: for table in tables:
if normalizeLayerSource(table.source()) == normalizeLayerSource(uri): if normalizeLayerSource(table.source()) == normalizeLayerSource(uri):
return table return table
if forceLoad: if forceLoad and os.path.exists(uri):
settings = QSettings() settings = QSettings()
prjSetting = settings.value('/Projections/defaultBehaviour') prjSetting = settings.value('/Projections/defaultBehaviour')
settings.setValue('/Projections/defaultBehaviour', '') settings.setValue('/Projections/defaultBehaviour', '')