diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-27 14:11:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-27 14:11:16 +0300 |
commit | e36478e5c3bc275e29604c501dd0abdf90d20d55 (patch) | |
tree | 2535bbff48abaed8ae8641826e9a9e6cb5183042 /src | |
parent | 83c27fd8c56bdaded7063c298e5e76e941d2bc6e (diff) |
merge with master till
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 208ccb107f..884577650e 100644 --- a/src/mir_app/src/proto_opts.cpp +++ b/src/mir_app/src/proto_opts.cpp @@ -751,8 +751,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;
|