Removed type constant, which are reserved for types derived from MessageControl
This commit is contained in:
parent
0d28a9dc58
commit
a27c648e64
|
@ -1398,7 +1398,7 @@ class Interface:
|
||||||
ev = gajim.get_first_event(account, jid, typ)
|
ev = gajim.get_first_event(account, jid, typ)
|
||||||
# Open the window
|
# Open the window
|
||||||
self.roster.open_event(account, jid, ev)
|
self.roster.open_event(account, jid, ev)
|
||||||
elif typ == message_control.TYPE_GMAIL:
|
elif typ == 'gmail':
|
||||||
if gajim.config.get_per('accounts', account, 'savepass'):
|
if gajim.config.get_per('accounts', account, 'savepass'):
|
||||||
url = ('http://www.google.com/accounts/ServiceLoginAuth?service=mail&Email=%s&Passwd=%s&continue=https://mail.google.com/mail') % (gajim.config.get_per('accounts', account, 'name'),gajim.config.get_per('accounts', account, 'password'))
|
url = ('http://www.google.com/accounts/ServiceLoginAuth?service=mail&Email=%s&Passwd=%s&continue=https://mail.google.com/mail') % (gajim.config.get_per('accounts', account, 'name'),gajim.config.get_per('accounts', account, 'password'))
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -24,7 +24,6 @@ from common import gajim
|
||||||
TYPE_CHAT = 'chat'
|
TYPE_CHAT = 'chat'
|
||||||
TYPE_GC = 'gc'
|
TYPE_GC = 'gc'
|
||||||
TYPE_PM = 'pm'
|
TYPE_PM = 'pm'
|
||||||
TYPE_GMAIL = 'gmail'
|
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# FIXME: Can't this stuff happen once?
|
# FIXME: Can't this stuff happen once?
|
||||||
|
|
Loading…
Reference in New Issue