better handling of several phone numbers in vcard. Fixes #5439

This commit is contained in:
Yann Leboulanger 2012-04-18 11:34:57 +02:00
parent ff87483b32
commit 0bab86b613
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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