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,6 +862,10 @@ class RosterWindow:
information_menuitem = childs[12]
history_menuitem = childs[13]
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',