Package: qgis / 2.4.0-1

0001-change-str-to-unicode-fix-10624.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From eb8325644a83b410d1d8f6420853da8201a3a236 Mon Sep 17 00:00:00 2001
From: Etienne Trimaille <etienne.trimaille@gmail.com>
Date: Thu, 3 Jul 2014 14:02:54 +0200
Subject: change str to unicode fix #10624
Origin: https://github.com/qgis/QGIS/commit/eb8325644a83b410d1d8f6420853da8201a3a236
Bug: http://hub.qgis.org/issues/10624


--- a/python/plugins/processing/modeler/ModelerParameterDefinitionDialog.py
+++ b/python/plugins/processing/modeler/ModelerParameterDefinitionDialog.py
@@ -324,7 +324,7 @@ class ModelerParameterDefinitionDialog(Q
                 == ModelerParameterDefinitionDialog.PARAMETER_STRING \
                 or isinstance(self.param, ParameterString):
             self.param = ParameterString(name, description,
-                    str(self.defaultTextBox.text()))
+                    unicode(self.defaultTextBox.text()))
         elif self.paramType \
                 == ModelerParameterDefinitionDialog.PARAMETER_EXTENT \
                 or isinstance(self.param, ParameterExtent):