VCard Window: fix URI

Fixes #8902
This commit is contained in:
Philipp Hörist 2018-02-16 20:48:22 +01:00
parent a4f08b3bfe
commit 075ceacf49
1 changed files with 4 additions and 1 deletions

View File

@ -188,7 +188,10 @@ class VcardWindow:
if entry_name in ('URL_label',
'EMAIL_WORK_USERID_label',
'EMAIL_HOME_USERID_label'):
widget.set_uri('mailto:' + value)
if entry_name == 'URL_label':
widget.set_uri(value)
else:
widget.set_uri('mailto:' + value)
widget.set_label(value)
self.xml.get_object(entry_name).show()
else: