From 13474cea9a306a3bc8ffd24545836b919463c056 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 7 Aug 2018 13:02:12 +0300 Subject: fixes #1536 (Steam and BuddyPounce menu items appear for all contacts) --- protocols/Steam/src/steam_menus.cpp | 5 ++++- protocols/Steam/src/version.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/Steam') diff --git a/protocols/Steam/src/steam_menus.cpp b/protocols/Steam/src/steam_menus.cpp index 91feead56a..c14b086b83 100644 --- a/protocols/Steam/src/steam_menus.cpp +++ b/protocols/Steam/src/steam_menus.cpp @@ -83,6 +83,9 @@ INT_PTR CSteamProto::OpenBlockListCommand(WPARAM, LPARAM) int CSteamProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM) { + for (auto &it : contactMenuItems) + Menu_ShowItem(it, false); + if (!hContact) return 0; @@ -110,7 +113,7 @@ int CSteamProto::PrebuildContactMenu(WPARAM hContact, LPARAM lParam) for (int i = 0; i < CMI_MAX; i++) Menu_ShowItem(CSteamProto::contactMenuItems[i], false); - CSteamProto* ppro = CMPlugin::getInstance((MCONTACT)hContact); + CSteamProto *ppro = CMPlugin::getInstance((MCONTACT)hContact); return (ppro) ? ppro->OnPrebuildContactMenu(hContact, lParam) : 0; } diff --git a/protocols/Steam/src/version.h b/protocols/Steam/src/version.h index 755837fc20..6e3077a59a 100644 --- a/protocols/Steam/src/version.h +++ b/protocols/Steam/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 11 #define __RELEASE_NUM 6 -#define __BUILD_NUM 3 +#define __BUILD_NUM 4 #include -- cgit v1.2.3