From adca17ccaecda72c8dd1234f1a7b91a0d5aff564 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 25 Jun 2015 12:23:28 +0000 Subject: another portion of dead genmenu services git-svn-id: http://svn.miranda-ng.org/main/trunk@14377 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/theme.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'protocols/FacebookRM/src') diff --git a/protocols/FacebookRM/src/theme.cpp b/protocols/FacebookRM/src/theme.cpp index 1d371c61c7..922c065db7 100644 --- a/protocols/FacebookRM/src/theme.cpp +++ b/protocols/FacebookRM/src/theme.cpp @@ -226,9 +226,10 @@ int FacebookProto::OnBuildStatusMenu(WPARAM, LPARAM) hRoot = m_hMenuRoot = Menu_AddProtoMenuItem(&miRoot); } else { - if (m_hMenuRoot) - CallService(MO_REMOVEMENUITEM, (WPARAM)m_hMenuRoot, 0); - m_hMenuRoot = NULL; + if (m_hMenuRoot) { + Menu_RemoveItem(m_hMenuRoot); + m_hMenuRoot = NULL; + } } mi.flags = CMIF_ROOTHANDLE | (this->isOnline() ? 0 : CMIF_GRAYED); -- cgit v1.2.3