Skip to content
Browse files

Fix modeler and batch file dialog

  • Loading branch information
arnaud-morvan committed Feb 9, 2017
1 parent 2f68d1a commit c43b04ffff641209a6f08d2ce1903303511f715a
@@ -211,10 +211,10 @@ def save(self):
toSave.append({self.PARAMETERS: algParams, self.OUTPUTS: algOutputs})

filename, __ = str(QFileDialog.getSaveFileName(self,'Save batch'),
None,'JSON files (*.json)')))
filename, __ = QFileDialog.getSaveFileName(self,'Save batch'),
None,'JSON files (*.json)'))
if filename:
if not filename.endswith('.json'):
filename += '.json'
@@ -474,9 +474,10 @@ def saveModel(self, saveAs):
self.hasChanged = False

def openModel(self):
filename, selected_filter = str(QFileDialog.getOpenFileName(self,'Open Model'), ModelerUtils.modelsFolders()[0],'Processing models (*.model *.MODEL)')))
filename, selected_filter = QFileDialog.getOpenFileName(self,'Open Model'),
ModelerUtils.modelsFolders()[0],'Processing models (*.model *.MODEL)'))
if filename:
alg = ModelerAlgorithm.fromFile(filename)

0 comments on commit c43b04f

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