Skip to content
Permalink
Browse files

More .model -> .model3 updates

  • Loading branch information
nyalldawson committed Jun 24, 2017
1 parent 5e7fbf4 commit ab9470dada969f440cc041e8017e0f2e04eb1aef
@@ -54,7 +54,7 @@ def execute(self):
lastDir = settings.value('Processing/lastModelsDir', '')
filename, selected_filter = QFileDialog.getOpenFileName(self.toolbox,
self.tr('Open model', 'AddModelFromFileAction'), lastDir,
self.tr('Processing model files (*.model *.MODEL)', 'AddModelFromFileAction'))
self.tr('Processing model files (*.model3 *.MODEL3)', 'AddModelFromFileAction'))
if filename:
settings.setValue('Processing/lastModelsDir',
QFileInfo(filename).absoluteDir().absolutePath())
@@ -472,7 +472,7 @@ def openModel(self):
filename, selected_filter = QFileDialog.getOpenFileName(self,
self.tr('Open Model'),
ModelerUtils.modelsFolders()[0],
self.tr('Processing models (*.model *.MODEL)'))
self.tr('Processing models (*.model3 *.MODEL3)'))
if filename:
alg = ModelerAlgorithm()
if alg.fromFile(filename):

0 comments on commit ab9470d

Please sign in to comment.
You can’t perform that action at this time.