summaryrefslogtreecommitdiff
path: root/plugins/DbChecker/src/options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-23 16:48:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-23 16:48:35 +0300
commit6ffc67311f6296d0989ee7be334a185b9f30b917 (patch)
treeec9bf03a4584237a7174cef01a1d360c7992136c /plugins/DbChecker/src/options.cpp
parent9dbe78ee5c1ee95454d411aabb9ba87bad77fefe (diff)
DbChecker: option for fixing old server message ids
Diffstat (limited to 'plugins/DbChecker/src/options.cpp')
-rw-r--r--plugins/DbChecker/src/options.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/DbChecker/src/options.cpp b/plugins/DbChecker/src/options.cpp
index 4b646add38..70569d587e 100644
--- a/plugins/DbChecker/src/options.cpp
+++ b/plugins/DbChecker/src/options.cpp
@@ -23,7 +23,8 @@ COptionsPageDlg::COptionsPageDlg() :
btnFile(this, IDC_OPENFILE),
chkFixUtf(this, IDC_FIX_UTF8),
chkMarkRead(this, IDC_MARKREAD),
- chkRemoveDups(this, IDC_REMOVE_DUPS)
+ chkRemoveDups(this, IDC_REMOVE_DUPS),
+ chkFixServerIds(this, IDC_FIX_SERVER_IDS)
{
}
@@ -37,6 +38,7 @@ bool COptionsPageDlg::OnInitDialog()
chkFixUtf.SetState(opts->bCheckUtf);
chkMarkRead.SetState(opts->bMarkRead);
chkRemoveDups.SetState(opts->bCheckDups);
+ chkFixServerIds.SetState(opts->bCheckServerIds);
if (opts->dbChecker != nullptr) {
edtFile.Disable();
@@ -91,8 +93,10 @@ LBL_Error:
opts->db = pDb;
}
- opts->bCheckUtf = chkFixUtf.GetState();
- opts->bMarkRead = chkMarkRead.GetState();
- opts->bCheckDups = chkRemoveDups.GetState();
+ opts->bCheckUtf = chkFixUtf.IsChecked();
+ opts->bMarkRead = chkMarkRead.IsChecked();
+ opts->bCheckDups = chkRemoveDups.IsChecked();
+ opts->bCheckServerIds = chkFixServerIds.IsChecked();
+
changePage(new CProgressPageDlg());
}