editors/ConfTreeNodeEditor.py
changeset 1179 3e7bd88fcff7
parent 1162 a2b4d366bc66
child 1180 276a30c68eaa
--- a/editors/ConfTreeNodeEditor.py	Tue May 28 10:03:41 2013 +0200
+++ b/editors/ConfTreeNodeEditor.py	Tue May 28 17:52:07 2013 +0200
@@ -531,8 +531,8 @@
             if res != textctrl.GetValue():
                 if isinstance(textctrl, wx.SpinCtrl):
                     textctrl.SetValue(res)
-                else:
-                    textctrl.ChangeValue(res)
+                elif res is not None:
+                    textctrl.ChangeValue(str(res))
             if refresh:
                 wx.CallAfter(self.ParentWindow._Refresh, TITLE, FILEMENU, PROJECTTREE, PAGETITLES)
                 wx.CallAfter(self.ParentWindow.SelectProjectTreeItem, self.GetTagName())