diff options
author | George Hazan <george.hazan@gmail.com> | 2014-06-24 18:58:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-06-24 18:58:21 +0000 |
commit | f887d23e058b52c1eca2fa4980bf82b4c5289fd7 (patch) | |
tree | 76650d269770795c85bb359e06d598981faa62c9 /plugins/TabSRMM/src/msgdialog.cpp | |
parent | 786066d2a5e8944f251fc6aae8c89c4185ec1467 (diff) |
preventing tabSRMM from displaying irrelevant events
git-svn-id: http://svn.miranda-ng.org/main/trunk@9569 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdialog.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 2b77f8b9b4..2f0e79c86c 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -2499,7 +2499,7 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (!dat)
return 0;
if (dat->hContact)
- if (wParam == dat->hContact || wParam == db_mc_getMeta(dat->hContact))
+ if (dat->hContact == wParam || dat->hContact == db_event_getContact(HANDLE(lParam)))
DM_EventAdded(dat, dat->hContact, lParam);
return 0;
@@ -2799,9 +2799,10 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP case WM_COMMAND:
if (!dat)
break;
+
// custom button handling
- if (LOWORD(wParam)>=MIN_CBUTTONID&&LOWORD(wParam)<=MAX_CBUTTONID) {
- BB_CustomButtonClick(dat,LOWORD(wParam) ,GetDlgItem(hwndDlg,LOWORD(wParam)),0);
+ if (LOWORD(wParam) >= MIN_CBUTTONID && LOWORD(wParam) <= MAX_CBUTTONID) {
+ BB_CustomButtonClick(dat, LOWORD(wParam), GetDlgItem(hwndDlg, LOWORD(wParam)), 0);
break;
}
|