summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-02-26 20:00:10 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-02-26 20:00:10 +0300
commit6803003d26debc79c90a1ec20078516ceefb30d5 (patch)
treeb8cd8183a979d0846913cc0cc6b1e90ec8486ddb
parent81385232b3d343a4ee73efa3a742a38e48be386b (diff)
fixes #4236 (Падение tabSRMM с NewStory при подгрузке History++)
-rw-r--r--plugins/NewStory/src/history_log.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp
index d6a3c53f9e..ec1aec4ff7 100644
--- a/plugins/NewStory/src/history_log.cpp
+++ b/plugins/NewStory/src/history_log.cpp
@@ -38,10 +38,13 @@ public:
m_histCtrl = (NewstoryListData *)GetWindowLongPtr(m_hwnd, 0);
m_histCtrl->SetDialog(&m_pDlg);
+
+ WindowList_Add(g_hNewstoryWindows, m_pDlg.GetHwnd(), m_pDlg.m_hContact);
}
void Detach() override
{
+ WindowList_Remove(g_hNewstoryWindows, m_pDlg.GetHwnd());
::DestroyWindow(m_hwnd);
}