Skip to content

Commit bd99f69

Browse files
committedFeb 21, 2018
More dialog title HIG fixes
1 parent 146d408 commit bd99f69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎python/plugins/processing/modeler/AddModelFromFileAction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def execute(self):
5252
settings = QgsSettings()
5353
lastDir = settings.value('Processing/lastModelsDir', '')
5454
filename, selected_filter = QFileDialog.getOpenFileName(self.toolbox,
55-
self.tr('Open model', 'AddModelFromFileAction'), lastDir,
55+
self.tr('Open Model', 'AddModelFromFileAction'), lastDir,
5656
self.tr('Processing model files (*.model3 *.MODEL3)', 'AddModelFromFileAction'))
5757
if filename:
5858
settings.setValue('Processing/lastModelsDir',
@@ -62,7 +62,7 @@ def execute(self):
6262
if not alg.fromFile(filename):
6363
QMessageBox.warning(
6464
self.toolbox,
65-
self.tr('Error reading model', 'AddModelFromFileAction'),
65+
self.tr('Open Model', 'AddModelFromFileAction'),
6666
self.tr('The selected file does not contain a valid model', 'AddModelFromFileAction'))
6767
return
6868
destFilename = os.path.join(ModelerUtils.modelsFolders()[0], os.path.basename(filename))

‎python/plugins/processing/modeler/ModelerDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def loadModel(self, filename):
530530
QgsMessageLog.logMessage(self.tr('Could not load model {0}').format(filename),
531531
self.tr('Processing'),
532532
Qgis.Critical)
533-
QMessageBox.critical(self, self.tr('Could not open model'),
533+
QMessageBox.critical(self, self.tr('Open Model'),
534534
self.tr('The selected model could not be loaded.\n'
535535
'See the log for more information.'))
536536

0 commit comments

Comments
 (0)
Please sign in to comment.