Fix regression that broke showing send to actions for multiple email accounts

This commit is contained in:
Kovid Goyal 2010-07-27 13:08:59 -06:00
parent e8b2270000
commit f3cfd09a54

View File

@ -349,6 +349,7 @@ class ShareConnMenu(QMenu): # {{{
for ac in self.email_actions:
self.removeAction(ac)
self.email_actions = []
self.memory = []
opts = email_config().parse()
if opts.accounts:
self.email_to_menu = QMenu(_('Email to')+'...', self)
@ -361,6 +362,7 @@ class ShareConnMenu(QMenu): # {{{
action2 = DeviceAction(dest, True, False, I('mail.svg'),
_('Email to')+' '+account+ _(' and delete from library'))
map(self.email_to_menu.addAction, (action1, action2))
map(self.memory.append, (action1, action2))
if default:
map(self.addAction, (action1, action2))
map(self.email_actions.append, (action1, action2))