E-mail: take fCheckMailCheckBox into account on save.

* Only the time you entered mattered (ie. 0 would have turned
  the auto check off).
This commit is contained in:
Axel Dörfler
2015-01-23 21:00:30 +01:00
parent 88fed28aff
commit ddf7ecfaa9
+4 -1
View File
@@ -445,10 +445,13 @@ ConfigWindow::_SaveSettings()
BMailSettings settings; BMailSettings settings;
if (fSaveSettings) { if (fSaveSettings) {
bigtime_t interval = 0;
if (fCheckMailCheckBox->Value() == B_CONTROL_ON) {
// figure out time interval // figure out time interval
float floatInterval; float floatInterval;
sscanf(fIntervalControl->Text(), "%f", &floatInterval); sscanf(fIntervalControl->Text(), "%f", &floatInterval);
bigtime_t interval = bigtime_t(60000000L * floatInterval); interval = bigtime_t(60000000L * floatInterval);
}
settings.SetAutoCheckInterval(interval); settings.SetAutoCheckInterval(interval);
settings.SetDaemonAutoStarts(!fAccounts.IsEmpty()); settings.SetDaemonAutoStarts(!fAccounts.IsEmpty());