From ddf7ecfaa91f2a1b20d596b85133d94548b0624b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 21 Jan 2015 10:50:09 +0100 Subject: [PATCH] E-mail: take fCheckMailCheckBox into account on save. * Only the time you entered mattered (ie. 0 would have turned the auto check off). --- src/preferences/mail/ConfigWindow.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/preferences/mail/ConfigWindow.cpp b/src/preferences/mail/ConfigWindow.cpp index 20c141164f..47ef076270 100644 --- a/src/preferences/mail/ConfigWindow.cpp +++ b/src/preferences/mail/ConfigWindow.cpp @@ -445,10 +445,13 @@ ConfigWindow::_SaveSettings() BMailSettings settings; if (fSaveSettings) { - // figure out time interval - float floatInterval; - sscanf(fIntervalControl->Text(), "%f", &floatInterval); - bigtime_t interval = bigtime_t(60000000L * floatInterval); + bigtime_t interval = 0; + if (fCheckMailCheckBox->Value() == B_CONTROL_ON) { + // figure out time interval + float floatInterval; + sscanf(fIntervalControl->Text(), "%f", &floatInterval); + interval = bigtime_t(60000000L * floatInterval); + } settings.SetAutoCheckInterval(interval); settings.SetDaemonAutoStarts(!fAccounts.IsEmpty());