disable send_file button when we don't know the resource. Fixes #4884
This commit is contained in:
parent
9bc7c4aa95
commit
e763627a6c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue