changeset 6be8d72891e2 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=6be8d72891e2
description: ability to send file to contacts without a resource (but still not
to fake jid) Fixes #7077
diffstat:
src/chat_control.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 2e38bfaa5a5d -r 6be8d72891e2 src/chat_control.py
--- a/src/chat_control.py Sun Jan 22 13:19:12 2012 +0100
+++ b/src/chat_control.py Sun Jan 22 18:44:46 2012 +0100
@@ -1722,18 +1722,19 @@
self._video_button.set_sensitive(self.video_available)
# Send file
- if self.contact.supports(NS_FILE) and self.contact.resource:
+ if self.contact.supports(NS_FILE) and (self.type_id == 'chat' or \
+ self.gc_contact.resource):
self._send_file_button.set_sensitive(True)
self._send_file_button.set_tooltip_text('')
else:
self._send_file_button.set_sensitive(False)
if not self.contact.supports(NS_FILE):
self._send_file_button.set_tooltip_text(_(
- "This contact does not support file transfer."))
+ "This contact does not support file transfer."))
else:
self._send_file_button.set_tooltip_text(
- _("You need to know the real JID of the contact to
send him or "
- "her a file."))
+ _("You need to know the real JID of the contact to send "
+ "him or her a file."))
# Convert to GC
if self.contact.supports(NS_MUC):
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits