From aff14216986b22c267e861810667d0547a81a952 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 17 Nov 2023 19:22:14 +0300 Subject: CurrencyRates to handle only its own menu items --- protocols/CurrencyRates/src/CurrencyRateInfoDlg.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/protocols/CurrencyRates/src/CurrencyRateInfoDlg.cpp b/protocols/CurrencyRates/src/CurrencyRateInfoDlg.cpp index 33428830fe..4fddbf8bf1 100644 --- a/protocols/CurrencyRates/src/CurrencyRateInfoDlg.cpp +++ b/protocols/CurrencyRates/src/CurrencyRateInfoDlg.cpp @@ -117,12 +117,11 @@ struct CurrencyRateInfoDlg2 : public CurrencyRateInfoDlg } }; -int CurrencyRates_OnContactDoubleClick(WPARAM wp, LPARAM/* lp*/) +int CurrencyRates_OnContactDoubleClick(WPARAM hContact, LPARAM/* lp*/) { - if (!g_pCurrentProvider) + if (!Proto_IsProtoOnContact(hContact, MODULENAME)) return 0; - MCONTACT hContact = MCONTACT(wp); MWindowList hWL = CModuleInfo::GetWindowList(WINDOW_PREFIX_INFO, true); assert(hWL); HWND hWnd = WindowList_Find(hWL, hContact); -- cgit v1.2.3