Author: dkirov Date: 2006-04-30 21:52:02 +0200 (Sun, 30 Apr 2006) New Revision: 6249
Modified: trunk/src/chat_control.py Log: don't activate PGP and FT menuitems/button for transports. fixes #1903
Modified: trunk/src/chat_control.py =================================================================== --- trunk/src/chat_control.py 2006-04-30 17:33:10 UTC (rev 6248) +++ trunk/src/chat_control.py 2006-04-30 19:52:02 UTC (rev 6249) @@ -934,7 +934,10 @@
def _update_gpg(self): tb = self.xml.get_widget('gpg_togglebutton') - if self.contact.keyID: # we can do gpg + # we can do gpg + # if self.contact is our own contact info (transports), + # don't enable pgp + if self.contact.keyID and self.contact.jid.find('@') != -1: tb.set_sensitive(True) tt = _('OpenPGP Encryption')
@@ -1193,7 +1196,8 @@ toggle_gpg_menuitem.set_property('sensitive', is_sensitive) # If we don't have resource, we can't do file transfer - if contact.resource: + # in transports, contact holds our info we need to disable it too + if contact.resource and contact.jid.find('@') != -1: send_file_menuitem.set_sensitive(True) else: send_file_menuitem.set_sensitive(False)