From 930fa5e62b924b66bee881070fd9619994da202d Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 24 Apr 2015 06:41:32 +0000 Subject: Tox: work commit git-svn-id: http://svn.miranda-ng.org/main/trunk@13061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_menus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/Tox/src/tox_menus.cpp') diff --git a/protocols/Tox/src/tox_menus.cpp b/protocols/Tox/src/tox_menus.cpp index 4820a2acd3..aec9a4b1eb 100644 --- a/protocols/Tox/src/tox_menus.cpp +++ b/protocols/Tox/src/tox_menus.cpp @@ -23,7 +23,8 @@ int CToxProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM) Menu_ShowItem(ContactMenuItems[CMI_AUTH_REQUEST], isCtrlPressed || isAuthNeed); Menu_ShowItem(ContactMenuItems[CMI_AUTH_GRANT], isCtrlPressed || isGrantNeed); - Menu_ShowItem(ContactMenuItems[CMI_AUDIO_CALL], TRUE); + bool isContactOnline = GetContactStatus(hContact) > ID_STATUS_OFFLINE; + Menu_ShowItem(ContactMenuItems[CMI_AUDIO_CALL], isContactOnline); return 0; } -- cgit v1.2.3