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):
|
def set_value(self, entry_name, value):
|
||||||
try:
|
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:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -198,7 +198,11 @@ class VcardWindow:
|
||||||
table = self.xml.get_object('personal_info_table')
|
table = self.xml.get_object('personal_info_table')
|
||||||
table.attach(widget, 1, 4, 3, 4, yoptions = 0)
|
table.attach(widget, 1, 4, 3, 4, yoptions = 0)
|
||||||
else:
|
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:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue