From e66cc6f92811270531993019b25ae546a70362e9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 4 Jan 2025 18:55:04 +0300 Subject: =?UTF-8?q?fixes=20#4827=20(NewStory:=20=D0=B4=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=B2=D0=BE=20=D0=B2=20=D0=B8=D1=81=D1=82=D0=BE=D1=80=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BD=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D1=80=D0=B8?= =?UTF-8?q?=D1=81=D0=BE=D0=B2=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BB=D0=B5=D1=82=D1=83)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history.h | 1 + plugins/NewStory/src/history_control.cpp | 3 +++ plugins/NewStory/src/history_dlg.cpp | 5 +++++ 3 files changed, 9 insertions(+) (limited to 'plugins') diff --git a/plugins/NewStory/src/history.h b/plugins/NewStory/src/history.h index f332a252cf..e83b8c69ec 100644 --- a/plugins/NewStory/src/history.h +++ b/plugins/NewStory/src/history.h @@ -30,6 +30,7 @@ enum UM_BOOKMARKS = WM_USER + 0x661, UM_LOCATETIME = WM_USER + 0x662, + UM_UPDATE_WINDOW = WM_USER + 0x663, }; extern MWindowList g_hNewstoryWindows, g_hNewstoryLogs, g_hNewstoryHistLogs; diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 534febf153..d651658e94 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -416,6 +416,7 @@ void NewstoryListData::DeleteItems(void) CDeleteEventsDlg dlg(m_hContact, nSelected, bIncoming); if (IDOK == dlg.DoModal()) { + int iSaveCount = totalCount; g_plugin.bDisableDelete = true; int firstSel = -1, flags = 0; @@ -437,6 +438,8 @@ void NewstoryListData::DeleteItems(void) } g_plugin.bDisableDelete = false; + if (iSaveCount != totalCount) + PostMessage(GetParent(m_hwnd), UM_UPDATE_WINDOW, 0, 0); if (firstSel != -1) { SetCaret(firstSel, false); diff --git a/plugins/NewStory/src/history_dlg.cpp b/plugins/NewStory/src/history_dlg.cpp index 6a7d508b73..3520e117c6 100644 --- a/plugins/NewStory/src/history_dlg.cpp +++ b/plugins/NewStory/src/history_dlg.cpp @@ -1159,6 +1159,11 @@ public: if (auto *pItem = m_histCtrl->GetItem(wParam)) LocateDateTime(pItem->dbe.timestamp); break; + + case UM_UPDATE_WINDOW: + UpdateTitle(); + BuildTimeTree(); + break; } return CDlgBase::DlgProc(msg, wParam, lParam); -- cgit v1.2.3