summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-17 21:52:49 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-17 21:52:49 +0300
commit1c2df22138f73779aaef56cc5019dc58913700b1 (patch)
tree3980085c53a4ad5bec97a3bed8561b1aa7ad6c35 /src/mir_core
parentba8c67dafed3f2f143ea37a657294f59d3cb4e00 (diff)
CCtrlListView::OnNotify: we ignore item change until OnInitDialog is finished
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/CCtrlListView.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_core/src/CCtrlListView.cpp b/src/mir_core/src/CCtrlListView.cpp
index 5dee094fba..2d9786ba64 100644
--- a/src/mir_core/src/CCtrlListView.cpp
+++ b/src/mir_core/src/CCtrlListView.cpp
@@ -56,6 +56,9 @@ BOOL CCtrlListView::OnNotify(int, NMHDR *pnmh)
case LVN_SETDISPINFO: OnSetDispInfo(&evt); return TRUE;
case LVN_ITEMCHANGED:
+ if (!m_parentWnd || !m_parentWnd->IsInitialized())
+ return FALSE;
+
OnItemChanged(&evt);
// item's state is calculated as 1/2 << 12, so we check it to filter out all non-state changes