don't show send_file_menuitem if we don't have a resource

This commit is contained in:
Yann Leboulanger 2005-10-07 14:21:31 +00:00
parent f53d4750dc
commit d827d157e8
1 changed files with 6 additions and 2 deletions

View File

@ -862,8 +862,12 @@ class RosterWindow:
information_menuitem = childs[12]
history_menuitem = childs[13]
send_file_menuitem.connect('activate',
self.on_send_file_menuitem_activate, account, contact)
if contact.resource:
send_file_menuitem.hide()
send_file_menuitem.set_no_show_all(True)
else:
send_file_menuitem.connect('activate',
self.on_send_file_menuitem_activate, account, contact)
start_chat_menuitem.connect('activate',
self.on_roster_treeview_row_activated, path)
send_single_message_menuitem.connect('activate',