diff options
author | George Hazan <george.hazan@gmail.com> | 2024-04-11 20:30:45 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-04-11 20:30:45 +0300 |
commit | 25e3bdc5ef034fcedcaa46d448c0e3e4531fd790 (patch) | |
tree | 43f090501da349d7bb5589fbf79efef879155ce8 /plugins | |
parent | 9fe2c936b5a3448111fbca845b0867a82c4f3863 (diff) |
fixes #4346 (NewStory: история не открывается, пока открыто окно сообщений с журналом NS)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/fonts.cpp | 2 | ||||
-rw-r--r-- | plugins/NewStory/src/history.h | 1 | ||||
-rw-r--r-- | plugins/NewStory/src/history_log.cpp | 4 |
3 files changed, 2 insertions, 5 deletions
diff --git a/plugins/NewStory/src/fonts.cpp b/plugins/NewStory/src/fonts.cpp index df32f891b1..c59acad7c2 100644 --- a/plugins/NewStory/src/fonts.cpp +++ b/plugins/NewStory/src/fonts.cpp @@ -76,7 +76,7 @@ int evtFontsChanged(WPARAM, LPARAM) it.hfnt = CreateFontIndirectA(&it.lf);
}
- WindowList_Broadcast(g_hNewstoryWindows, UM_REDRAWLISTH, 0, 0);
+ WindowList_Broadcast(g_hNewstoryLogs, UM_REDRAWLISTH, 0, 0);
return 0;
}
diff --git a/plugins/NewStory/src/history.h b/plugins/NewStory/src/history.h index ef1d9f5961..0d5b1c74a1 100644 --- a/plugins/NewStory/src/history.h +++ b/plugins/NewStory/src/history.h @@ -11,7 +11,6 @@ enum UM_REBUILDLIST,
UM_FILTERLIST,
- UM_REDRAWLIST,
UM_REDRAWLISTH,
UM_ADDEVENT,
diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp index ec1aec4ff7..f94f3a33fc 100644 --- a/plugins/NewStory/src/history_log.cpp +++ b/plugins/NewStory/src/history_log.cpp @@ -38,13 +38,11 @@ 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());
+ WindowList_Remove(g_hNewstoryLogs, m_pDlg.GetHwnd());
::DestroyWindow(m_hwnd);
}
|