Skip to content
Snippets Groups Projects
Commit eb71b81e authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist
Browse files

VcardWindow: Fix resource string if resource is missing

Fixes: #10273
parent c3578713
No related branches found
No related tags found
No related merge requests found
......@@ -398,10 +398,13 @@ def fill_jabber_page(self):
tt_text = _("There is no pending subscription request.")
ask_label.set_tooltip_text(tt_text)
resources = '%s (%s)' % (self.contact.resource, str(
self.contact.priority))
uf_resources = self.contact.resource + _(' resource with priority ')\
+ str(self.contact.priority)
resources = ''
uf_resources = ''
if self.contact.resource:
resources = '%s (%s)' % (self.contact.resource, str(
self.contact.priority))
uf_resources = self.contact.resource + _(' resource with priority ')\
+ str(self.contact.priority)
if not self.contact.status:
self.contact.status = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment