Daniel Brötzmann pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/vcard.py
    ... ... @@ -398,10 +398,13 @@ def fill_jabber_page(self):
    398 398
                     tt_text = _("There is no pending subscription request.")
    
    399 399
                 ask_label.set_tooltip_text(tt_text)
    
    400 400
     
    
    401
    -        resources = '%s (%s)' % (self.contact.resource, str(
    
    402
    -            self.contact.priority))
    
    403
    -        uf_resources = self.contact.resource + _(' resource with priority ')\
    
    404
    -                + str(self.contact.priority)
    
    401
    +        resources = ''
    
    402
    +        uf_resources = ''
    
    403
    +        if self.contact.resource:
    
    404
    +            resources = '%s (%s)' % (self.contact.resource, str(
    
    405
    +                self.contact.priority))
    
    406
    +            uf_resources = self.contact.resource + _(' resource with priority ')\
    
    407
    +                    + str(self.contact.priority)
    
    405 408
             if not self.contact.status:
    
    406 409
                 self.contact.status = ''
    
    407 410