From 73bdce2e4ff8f4a6b855b0318f85f0cdb1e05093 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Feb 2012 12:42:24 +0530 Subject: [PATCH] Fix #937087 (welcome wizard does not save send-from email info unless send-to field is filled) --- src/calibre/gui2/wizard/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/wizard/__init__.py b/src/calibre/gui2/wizard/__init__.py index bb4ed90ce8..72fef86eb0 100644 --- a/src/calibre/gui2/wizard/__init__.py +++ b/src/calibre/gui2/wizard/__init__.py @@ -420,9 +420,9 @@ class KindlePage(QWizardPage, KindleUI): def commit(self): x = unicode(self.to_address.text()).strip() 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() accounts = conf.parse().accounts if not accounts: accounts = {}