disable send_file button when we don't know the resource. Fixes #4884

This commit is contained in:
Yann Leboulanger 2009-03-25 12:12:23 +00:00
parent 9bc7c4aa95
commit e763627a6c
1 changed files with 2 additions and 1 deletions

View File

@ -1253,7 +1253,8 @@ class ChatControl(ChatControlBase):
self._add_to_roster_button.hide() self._add_to_roster_button.hide()
# Send file # Send file
if gajim.capscache.is_supported(self.contact, NS_FILE): if gajim.capscache.is_supported(self.contact, NS_FILE) and \
self.contact.resource:
self._send_file_button.set_sensitive(True) self._send_file_button.set_sensitive(True)
else: else:
self._send_file_button.set_sensitive(False) self._send_file_button.set_sensitive(False)