Skip to content
Permalink
Browse files

[processing] better handling of non-ASCII characters in config dialog

(addresses #9323)
  • Loading branch information
alexbruy committed Mar 24, 2014
1 parent 40942fa commit d86a9aa51f636e52fde2ae82fb1c8c41447c1580
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/gui/ConfigDialog.py
@@ -135,7 +135,7 @@ def accept(self):
if isinstance(setting.value, bool):
setting.value = self.items[setting].checkState() == Qt.Checked
elif isinstance(setting.value, (float, int, long)):
value = str(self.items[setting].text())
value = unicode(self.items[setting].text())
try:
value = float(value)
setting.value = value
@@ -144,7 +144,7 @@ def accept(self):
self.tr('Wrong parameter value:\n%1').arg(value))
return
else:
setting.value = str(self.items[setting].text())
setting.value = unicode(self.items[setting].text())
ProcessingConfig.addSetting(setting)
ProcessingConfig.saveSettings()
self.toolbox.updateTree()

0 comments on commit d86a9aa

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