Skip to content

Commit

Permalink
[processing] better handling of non-ASCII characters in config dialog
Browse files Browse the repository at this point in the history
(addresses #9323)
  • Loading branch information
alexbruy committed Mar 24, 2014
1 parent 40942fa commit d86a9aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/ConfigDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit d86a9aa

Please sign in to comment.