summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_menus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-08-07 13:02:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-08-07 13:02:12 +0300
commit13474cea9a306a3bc8ffd24545836b919463c056 (patch)
treee1e31fd79368afa89529eb3ac594fa19840cea81 /protocols/Steam/src/steam_menus.cpp
parent3ac6eea5b042cf04e28060c47369e999fbdf3ad5 (diff)
fixes #1536 (Steam and BuddyPounce menu items appear for all contacts)
Diffstat (limited to 'protocols/Steam/src/steam_menus.cpp')
-rw-r--r--protocols/Steam/src/steam_menus.cpp5
1 files changed, 4 insertions, 1 deletions
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;
}