Test if integer dict widget value is not None before converting it
issue10167 review340211002
This commit is contained in:
1 parent
8b00fc1544
commit
cb4ab741f8
1 file changed
+3
-1
@@ -234,7 +234,9 @@ class DictIntegerEntry(DictEntry):
|
||||
return widget
|
||||
|
||||
def get_value(self):
|
||||
return int(self.widget.value)
|
||||
if self.widget.value is not None:
|
||||
return int(self.widget.value)
|
||||
return None
|
||||
|
||||
def set_value(self, value):
|
||||
if value is not None:
|
||||
|
||||
Reference in new issue
Block a user