Editing rules crashes because value and string attrbutes are now protected on GrampsType so get via a different method

svn: r10833
This commit is contained in:
Gary Burton 2008-06-28 22:02:05 +00:00
parent 656b4da5ab
commit c82c8d58dc

View File

@ -371,7 +371,7 @@ class MySelect(gtk.ComboBoxEntry):
def set_text(self, val): def set_text(self, val):
tc = self.type_class() tc = self.type_class()
tc.set_from_xml_str(val) tc.set_from_xml_str(val)
self.sel.set_values((tc.val, tc.string)) self.sel.set_values((int(tc), str(tc)))
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #