mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1036358 (Validation bug in First Run Wizzard)
This commit is contained in:
parent
a4f6bd6c13
commit
4f117c0fb7
@ -440,8 +440,7 @@ class KindlePage(QWizardPage, KindleUI):
|
|||||||
x = unicode(self.to_address.text()).strip()
|
x = unicode(self.to_address.text()).strip()
|
||||||
parts = x.split('@')
|
parts = x.split('@')
|
||||||
|
|
||||||
if (self.send_email_widget.set_email_settings(True) and len(parts) >= 2
|
if (len(parts) >= 2 and parts[0] and self.send_email_widget.set_email_settings(True)):
|
||||||
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