don't allow vcard window for offline local contacts

This commit is contained in:
Stefan Bethge 2006-10-17 16:35:56 +00:00
parent 2d4f689891
commit ff735c4d36
1 changed files with 5 additions and 2 deletions

View File

@ -1454,8 +1454,11 @@ class RosterWindow:
send_file_menuitem.set_no_show_all(True) send_file_menuitem.set_no_show_all(True)
rename_menuitem.connect('activate', self.on_rename, iter, tree_path) rename_menuitem.connect('activate', self.on_rename, iter, tree_path)
information_menuitem.connect('activate', self.on_info_zeroconf, contact, if contact.show == 'offline':
account) information_menuitem.set_sensitive(False)
else:
information_menuitem.connect('activate', self.on_info_zeroconf, contact,
account)
history_menuitem.connect('activate', self.on_history, contact, history_menuitem.connect('activate', self.on_history, contact,
account) account)