From e763627a6c42a3dc4213f38ec0758bdb386b2437 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 25 Mar 2009 12:12:23 +0000 Subject: [PATCH] disable send_file button when we don't know the resource. Fixes #4884 --- src/chat_control.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chat_control.py b/src/chat_control.py index a7aa40bc9..659903cfb 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1253,7 +1253,8 @@ class ChatControl(ChatControlBase): self._add_to_roster_button.hide() # 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) else: self._send_file_button.set_sensitive(False)