From 9858525158605465498ce306d0819e5b5574caea Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Tue, 10 Jan 2012 16:28:03 +1000 Subject: [PATCH] Make reindexer run on changing SleepyHead's data compression setting. (making it resave in either compressed or uncompressed state) --- preferencesdialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/preferencesdialog.cpp b/preferencesdialog.cpp index a37bf555..f6a0a2e4 100644 --- a/preferencesdialog.cpp +++ b/preferencesdialog.cpp @@ -305,8 +305,11 @@ bool PreferencesDialog::Save() needs_restart=true; else recalc_events=true; } + + if (profile->session->compressSessionData()!=ui->compressSessionData->isChecked()) recalc_events=true; + if (recalc_events) { - if (QMessageBox::question(this,tr("Data Reindex Required"),tr("A lengthy data reindexing proceedure is required to apply these changes.\n\nAre you sure you want to make these changes?"),QMessageBox::Yes,QMessageBox::No)==QMessageBox::No) { + if (QMessageBox::question(this,tr("Data Reindex Required"),tr("A data reindexing proceedure is required to apply these changes.\n\nAre you sure you want to make these changes?"),QMessageBox::Yes,QMessageBox::No)==QMessageBox::No) { return false; } } else if (needs_restart) {