Skip to content

Commit

Permalink
Minor changes in Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ghtmtt authored and nyalldawson committed Mar 31, 2018
1 parent ca210dc commit b72f0f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/script/ScriptEditorDialog.py
Expand Up @@ -172,14 +172,14 @@ def saveAs(self):
def loadFrom(self):
if self.hasChanged:
ret = QMessageBox.warning(self,
self.tr("Unsaved changes"),
self.tr("Load Script From Template"),
self.tr("There are unsaved changes in the script. Continue?"),
QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
if ret == QMessageBox.No:
return

templatePath = os.path.join(
pluginPath, 'script', 'script_template.py')
pluginPath, 'script', 'ScriptTemplate.py')

with codecs.open(templatePath, 'r', encoding='utf-8') as f:
templateTxt = f.read()
Expand Down

0 comments on commit b72f0f0

Please sign in to comment.