diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-18 13:30:36 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-18 13:30:36 +0300 |
commit | fe1d2e6fd5d77885e3efe0339e03b2fec7002b0b (patch) | |
tree | 0bd580f0e9d113288dab05628f42455e16922990 /src/mir_core | |
parent | 9705b55d9b81bc6bcc475c4b2f7db9e33f89e037 (diff) |
fix for strange post-effects of dnd in CCtrlTreeView
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/ui_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp index 1ca3ee069a..1e4cec81b9 100644 --- a/src/mir_core/src/ui_utils.cpp +++ b/src/mir_core/src/ui_utils.cpp @@ -1754,7 +1754,7 @@ BOOL CCtrlTreeView::OnNotify(int, NMHDR *pnmh) if (evt.nmtvkey->wVKey == VK_SPACE) {
if (m_bCheckBox)
InvertCheck(GetSelection());
- OnChange(this);
+ OnItemChanged(&evt);
NotifyChange();
}
@@ -1773,7 +1773,7 @@ BOOL CCtrlTreeView::OnNotify(int, NMHDR *pnmh) InvertCheck(hti.hItem);
else
SelectItem(hti.hItem);
- OnChange(this);
+ OnItemChanged(&evt);
NotifyChange();
}
}
|