Skip to content
Browse files

More dialog title HIG fixes

  • Loading branch information
nyalldawson committed Feb 21, 2018
1 parent 146d408 commit bd99f6979b617f9be53bc04e67655960c83dd8ca
@@ -52,7 +52,7 @@ def execute(self):
settings = QgsSettings()
lastDir = settings.value('Processing/lastModelsDir', '')
filename, selected_filter = QFileDialog.getOpenFileName(self.toolbox,'Open model', 'AddModelFromFileAction'), lastDir,'Open Model', 'AddModelFromFileAction'), lastDir,'Processing model files (*.model3 *.MODEL3)', 'AddModelFromFileAction'))
if filename:
@@ -62,7 +62,7 @@ def execute(self):
if not alg.fromFile(filename):
self.toolbox,'Error reading model', 'AddModelFromFileAction'),'Open Model', 'AddModelFromFileAction'),'The selected file does not contain a valid model', 'AddModelFromFileAction'))
destFilename = os.path.join(ModelerUtils.modelsFolders()[0], os.path.basename(filename))
@@ -530,7 +530,7 @@ def loadModel(self, filename):
QgsMessageLog.logMessage('Could not load model {0}').format(filename),'Processing'),
QMessageBox.critical(self,'Could not open model'),
QMessageBox.critical(self,'Open Model'),'The selected model could not be loaded.\n'
'See the log for more information.'))

0 comments on commit bd99f69

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