mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression that broke showing send to actions for multiple email accounts
This commit is contained in:
parent
e8b2270000
commit
f3cfd09a54
@ -349,6 +349,7 @@ class ShareConnMenu(QMenu): # {{{
|
|||||||
for ac in self.email_actions:
|
for ac in self.email_actions:
|
||||||
self.removeAction(ac)
|
self.removeAction(ac)
|
||||||
self.email_actions = []
|
self.email_actions = []
|
||||||
|
self.memory = []
|
||||||
opts = email_config().parse()
|
opts = email_config().parse()
|
||||||
if opts.accounts:
|
if opts.accounts:
|
||||||
self.email_to_menu = QMenu(_('Email to')+'...', self)
|
self.email_to_menu = QMenu(_('Email to')+'...', self)
|
||||||
@ -361,6 +362,7 @@ class ShareConnMenu(QMenu): # {{{
|
|||||||
action2 = DeviceAction(dest, True, False, I('mail.svg'),
|
action2 = DeviceAction(dest, True, False, I('mail.svg'),
|
||||||
_('Email to')+' '+account+ _(' and delete from library'))
|
_('Email to')+' '+account+ _(' and delete from library'))
|
||||||
map(self.email_to_menu.addAction, (action1, action2))
|
map(self.email_to_menu.addAction, (action1, action2))
|
||||||
|
map(self.memory.append, (action1, action2))
|
||||||
if default:
|
if default:
|
||||||
map(self.addAction, (action1, action2))
|
map(self.addAction, (action1, action2))
|
||||||
map(self.email_actions.append, (action1, action2))
|
map(self.email_actions.append, (action1, action2))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user