mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 19:14:15 +02:00
Fix regression that broke showing send to actions for multiple email accounts
This commit is contained in:
parent
e8b2270000
commit
f3cfd09a54
1 changed files with 2 additions and 0 deletions
|
|
@ -349,6 +349,7 @@ def build_email_entries(self, sync_menu):
|
|||
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 @@ def build_email_entries(self, sync_menu):
|
|||
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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue