From 2a8ecef339ad41f43d7461b11897fe0a9933167c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Aug 2022 15:35:54 +0300 Subject: code cleaning --- plugins/TabSRMM/src/msgdlgother.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp index b47eb8bf92..d9edce60ae 100644 --- a/plugins/TabSRMM/src/msgdlgother.cpp +++ b/plugins/TabSRMM/src/msgdlgother.cpp @@ -1515,16 +1515,14 @@ int CMsgDialog::MsgWindowMenuHandler(int selection, int menuId) break; case ID_PICMENU_SETTINGS: - if (menuId == MENU_PANELPICMENU) - CallService(MS_AV_CONTACTOPTIONS, m_hContact, 0); - else if (menuId == MENU_PICMENU) { + if (menuId == MENU_PICMENU) { if (m_pPanel.isActive()) { if (ServiceExists(MS_AV_SETMYAVATARW) && CallService(MS_AV_CANSETMYAVATAR, (WPARAM)(m_cache->getActiveProto()), 0)) CallService(MS_AV_SETMYAVATARW, (WPARAM)(m_cache->getActiveProto()), 0); + return TRUE; } - else - CallService(MS_AV_CONTACTOPTIONS, m_hContact, 0); } + CallService(MS_AV_CONTACTOPTIONS, m_hContact, (LPARAM)m_hwnd); return 1; } } -- cgit v1.2.3