Skip to content

Instantly share code, notes, and snippets.

@smellman
Created November 2, 2016 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smellman/053246bcec462c3898d1c77d393e0a3b to your computer and use it in GitHub Desktop.
Save smellman/053246bcec462c3898d1c77d393e0a3b to your computer and use it in GitHub Desktop.
QGIS ConfigDialog error patch
--- tmp/ConfigDialog.py 2016-11-02 21:53:40.000000000 +0900
+++ /Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/gui/ConfigDialog.py 2016-11-02 22:15:03.000000000 +0900
@@ -248,8 +248,9 @@
try:
setting.setValue(unicode(self.items[setting].text()))
except ValueError as e:
+ msg = 'Wrong value for parameter "%s"\n\n%s' % (setting.description, unicode(e))
QMessageBox.warning(self, self.tr('Wrong value'),
- self.tr('Wrong value for parameter "%s":\n\n%s' % (setting.description, unicode(e))))
+ msg)
return
setting.save()
Processing.updateAlgsList()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment