Skip to content
Permalink
Browse files

Minor changes in Dialog

  • Loading branch information
ghtmtt authored and nyalldawson committed Mar 31, 2018
1 parent ca210dc commit b72f0f0e9084887715dd1e51f5a342702195c54f
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/script/ScriptEditorDialog.py
@@ -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()

0 comments on commit b72f0f0

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