mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix #937087 (welcome wizard does not save send-from email info unless send-to field is filled)
This commit is contained in:
parent
5ab68cba7b
commit
73bdce2e4f
@ -420,9 +420,9 @@ class KindlePage(QWizardPage, KindleUI):
|
|||||||
def commit(self):
|
def commit(self):
|
||||||
x = unicode(self.to_address.text()).strip()
|
x = unicode(self.to_address.text()).strip()
|
||||||
parts = x.split('@')
|
parts = x.split('@')
|
||||||
if len(parts) < 2 or not parts[0]: return
|
|
||||||
|
|
||||||
if self.send_email_widget.set_email_settings(True):
|
if (self.send_email_widget.set_email_settings(True) and len(parts) >= 2
|
||||||
|
and parts[0]):
|
||||||
conf = smtp_prefs()
|
conf = smtp_prefs()
|
||||||
accounts = conf.parse().accounts
|
accounts = conf.parse().accounts
|
||||||
if not accounts: accounts = {}
|
if not accounts: accounts = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user