mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 21:44:29 +01:00
Fix #1036358 (Validation bug in First Run Wizzard)
This commit is contained in:
parent
a4f6bd6c13
commit
4f117c0fb7
1 changed files with 1 additions and 2 deletions
|
|
@ -440,8 +440,7 @@ def commit(self):
|
|||
x = unicode(self.to_address.text()).strip()
|
||||
parts = x.split('@')
|
||||
|
||||
if (self.send_email_widget.set_email_settings(True) and len(parts) >= 2
|
||||
and parts[0]):
|
||||
if (len(parts) >= 2 and parts[0] and self.send_email_widget.set_email_settings(True)):
|
||||
conf = smtp_prefs()
|
||||
accounts = conf.parse().accounts
|
||||
if not accounts: accounts = {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue