diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-27 14:07:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-27 14:07:28 +0300 |
commit | 38d70bf8d8d08cc687263b83ab598279d36a9c56 (patch) | |
tree | 378878c20939d90898f1f5a667ac29e8edd37d44 /src | |
parent | 87544a617aa076ae12f84ab77d667601e9a90aa7 (diff) |
fixes #1374 (IRC crash on exit after 20-30 account on/off)
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/proto_opts.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_app/src/proto_opts.cpp b/src/mir_app/src/proto_opts.cpp index 12308bea44..4d80ea16a6 100644 --- a/src/mir_app/src/proto_opts.cpp +++ b/src/mir_app/src/proto_opts.cpp @@ -749,8 +749,10 @@ LRESULT CAccountListCtrl::CustomWndProc(UINT msg, WPARAM wParam, LPARAM lParam) case WM_LBUTTONUP:
{
POINT pt = { LOWORD(lParam), HIWORD(lParam) };
- if ((m_iItem >= 0) && PtInRect(&m_rcCheck, pt))
+ if ((m_iItem >= 0) && PtInRect(&m_rcCheck, pt)) {
+ PARENT()->m_iPrevSel = m_iItem;
PARENT()->OnAccountCheck(m_iItem);
+ }
m_iItem = -1;
}
break;
|