Force recalc to restart after to switch UserFlags graphs back on

This commit is contained in:
Mark Watkins 2012-01-11 19:54:54 +10:00
parent 95278e0408
commit 71d0ffed25

View File

@ -305,10 +305,11 @@ bool PreferencesDialog::Save()
// Restart if turning user event flagging on/off // Restart if turning user event flagging on/off
if (profile->cpap->userEventFlagging()!=ui->customEventGroupbox->isChecked()) { if (profile->cpap->userEventFlagging()!=ui->customEventGroupbox->isChecked()) {
if (profile->cpap->userEventFlagging()) { // if (profile->cpap->userEventFlagging()) {
// Don't bother recalculating, just switch off // Don't bother recalculating, just switch off
needs_restart=true; needs_restart=true;
} else recalc_events=true; //} else
recalc_events=true;
} }
if (profile->session->compressSessionData()!=ui->compressSessionData->isChecked()) if (profile->session->compressSessionData()!=ui->compressSessionData->isChecked())