don't allow vcard window for offline local contacts
This commit is contained in:
parent
2d4f689891
commit
ff735c4d36
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue