Skip to content

Commit 2e4c328

Browse files
committed
Revert "[processing] use default models folder when adding model from file (fix #15335)"
This reverts commit ebd5b0b cherry-picked by mistake
1 parent ebd5b0b commit 2e4c328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/modeler/AddModelFromFileAction.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ def execute(self):
6969
self.tr('Error reading model', 'AddModelFromFileAction'),
7070
self.tr('Cannot read file', 'AddModelFromFileAction'))
7171
return
72-
destFilename = os.path.join(ModelerUtils.defaultModelsFolder(), os.path.basename(filename))
72+
destFilename = os.path.join(ModelerUtils.modelsFolder(), os.path.basename(filename))
7373
shutil.copyfile(filename, destFilename)
7474
self.toolbox.updateProvider('model')

0 commit comments

Comments
 (0)