From f887d23e058b52c1eca2fa4980bf82b4c5289fd7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 24 Jun 2014 18:58:21 +0000 Subject: preventing tabSRMM from displaying irrelevant events git-svn-id: http://svn.miranda-ng.org/main/trunk@9569 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgdialog.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM/src/msgdialog.cpp') 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; } -- cgit v1.2.3