From 4e61f273091ef5050ead326c809237d66417cd06 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 4 Mar 2019 22:59:21 +0300 Subject: Tox not to modify Request Auth/Grant Auth menu items for another contacts --- protocols/Tox/src/tox_menus.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'protocols') diff --git a/protocols/Tox/src/tox_menus.cpp b/protocols/Tox/src/tox_menus.cpp index 7e6313aadf..debe3b5ae6 100644 --- a/protocols/Tox/src/tox_menus.cpp +++ b/protocols/Tox/src/tox_menus.cpp @@ -1,13 +1,8 @@ #include "stdafx.h" -// HGENMENU CToxProto::ContactMenuItems[CMI_MAX]; - int CToxProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM) { - // for (auto &it : ContactMenuItems) - // Menu_ShowItem(it, false); - - if (!hContact) + if (!Proto_IsProtoOnContact(hContact, m_szModuleName)) return 0; if (!this->IsOnline()) -- cgit v1.2.3