better handling of several phone numbers in vcard. Fixes #5439
This commit is contained in:
parent
ff87483b32
commit
0bab86b613
|
@ -234,7 +234,11 @@ class ProfileWindow:
|
|||
|
||||
def set_value(self, entry_name, value):
|
||||
try:
|
||||
self.xml.get_object(entry_name).set_text(value)
|
||||
widget = self.xml.get_object(entry_name)
|
||||
val = widget.get_text()
|
||||
if val:
|
||||
value = val + ' / ' + value
|
||||
widget.set_text(value)
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
|
|
|
@ -198,7 +198,11 @@ class VcardWindow:
|
|||
table = self.xml.get_object('personal_info_table')
|
||||
table.attach(widget, 1, 4, 3, 4, yoptions = 0)
|
||||
else:
|
||||
self.xml.get_object(entry_name).set_text(value)
|
||||
widget = self.xml.get_object(entry_name)
|
||||
val = widget.get_text()
|
||||
if val:
|
||||
value = val + ' / ' + value
|
||||
widget.set_text(value)
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue