mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] Don't try to force load files which don't exist
This commit is contained in:
parent
272cd38018
commit
b4bca5bb98
@ -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', '')
|
||||
|
Loading…
x
Reference in New Issue
Block a user