From 6ffc67311f6296d0989ee7be334a185b9f30b917 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 23 Apr 2023 16:48:35 +0300 Subject: DbChecker: option for fixing old server message ids --- plugins/DbChecker/src/options.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'plugins/DbChecker/src/options.cpp') 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()); } -- cgit v1.2.3