don't allow vcard window for offline local contacts
This commit is contained in:
parent
2d4f689891
commit
ff735c4d36
|
@ -1454,6 +1454,9 @@ class RosterWindow:
|
|||
send_file_menuitem.set_no_show_all(True)
|
||||
|
||||
rename_menuitem.connect('activate', self.on_rename, iter, tree_path)
|
||||
if contact.show == 'offline':
|
||||
information_menuitem.set_sensitive(False)
|
||||
else:
|
||||
information_menuitem.connect('activate', self.on_info_zeroconf, contact,
|
||||
account)
|
||||
history_menuitem.connect('activate', self.on_history, contact,
|
||||
|
|
Loading…
Reference in New Issue