changeset e21472bb6fc9 in /home/hg/repos/gajim
author: Denis Fomin fominde@gmail.com branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=e21472bb6fc9 description: Fix sensitive for file transfer button
diffstat:
src/chat_control.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r b3ac6123599e -r e21472bb6fc9 src/chat_control.py --- a/src/chat_control.py Wed Sep 04 17:31:12 2013 +0200 +++ b/src/chat_control.py Thu Sep 05 12:15:28 2013 +0400 @@ -1810,14 +1810,15 @@
# Send file if ((self.contact.supports(NS_FILE) or \ - self.contact.supports(NS_JINGLE_FILE_TRANSFER)) or \ - self.type_id == 'chat' or self.gc_contact.resource) and \ + self.contact.supports(NS_JINGLE_FILE_TRANSFER)) and \ + (self.type_id == 'chat' or self.gc_contact.resource)) and \ self.contact.show != 'offline': self._send_file_button.set_sensitive(True) self._send_file_button.set_tooltip_text(_('Send files')) else: self._send_file_button.set_sensitive(False) - if not (self.contact.supports(NS_FILE) or self.contact.supports(NS_JINGLE_FILE_TRANSFER)): + if not (self.contact.supports(NS_FILE) or self.contact.supports( + NS_JINGLE_FILE_TRANSFER)): self._send_file_button.set_tooltip_text(_( "This contact does not support file transfer.")) else: