mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-20 00:03:07 -04:00
[processing] use default models folder when adding model from file (fix #15335)
This commit is contained in:
parent
4e94963af5
commit
b167c09e44
@ -71,6 +71,6 @@ class AddModelFromFileAction(ToolboxAction):
|
||||
self.tr('Error reading model', 'AddModelFromFileAction'),
|
||||
self.tr('Cannot read file', 'AddModelFromFileAction'))
|
||||
return
|
||||
destFilename = os.path.join(ModelerUtils.modelsFolder(), os.path.basename(filename))
|
||||
destFilename = os.path.join(ModelerUtils.defaultModelsFolder(), os.path.basename(filename))
|
||||
shutil.copyfile(filename, destFilename)
|
||||
algList.reloadProvider('model')
|
||||
|
Loading…
x
Reference in New Issue
Block a user