summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-02-08 11:25:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-02-08 11:26:02 +0300
commit114120db3089beb1381ace40c795ba38aeb93b4b (patch)
tree18bf82ccfa181d0d190b9e9dce8208f2cbea0742 /plugins/NewStory/src/history.cpp
parentac7cebb7d2457b3fbf13143b08924d491aa1ac80 (diff)
more UI classes related code cleaning
Diffstat (limited to 'plugins/NewStory/src/history.cpp')
-rw-r--r--plugins/NewStory/src/history.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp
index f7ca4cc22f..194669c545 100644
--- a/plugins/NewStory/src/history.cpp
+++ b/plugins/NewStory/src/history.cpp
@@ -836,8 +836,9 @@ public:
void onChange_SearchText(CCtrlEdit*)
{
- if (showFlags & HIST_AUTO_FILTER)
- PostMessage(m_hwnd, UM_REBUILDLIST, 0, 0);
+ if (m_bInitialized)
+ if (showFlags & HIST_AUTO_FILTER)
+ PostMessage(m_hwnd, UM_REBUILDLIST, 0, 0);
}
INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) override