diff options
author | George Hazan <george.hazan@gmail.com> | 2016-02-01 07:57:31 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-02-01 07:57:31 +0000 |
commit | 1e2a3c77546e1d51383df4fa6df0925aafaacd0f (patch) | |
tree | cac4e6afdf4596d77b86ace0a2315d252ca7308e /protocols/FacebookRM/src/theme.cpp | |
parent | 5707c6b2b1eafbf38ee7c14f39e42c2280d294ea (diff) |
bugfix: Facebook protocol menu gets multiplied if located in main menu
git-svn-id: http://svn.miranda-ng.org/main/trunk@16203 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/theme.cpp')
-rw-r--r-- | protocols/FacebookRM/src/theme.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/theme.cpp b/protocols/FacebookRM/src/theme.cpp index 23d1fb889a..1b1e747f49 100644 --- a/protocols/FacebookRM/src/theme.cpp +++ b/protocols/FacebookRM/src/theme.cpp @@ -217,7 +217,7 @@ int FacebookProto::OnPrebuildContactMenu(WPARAM wParam, LPARAM) return 0;
}
-int FacebookProto::OnBuildStatusMenu(WPARAM, LPARAM)
+void FacebookProto::InitMenu()
{
CMenuItem mi;
mi.position = 201001;
@@ -263,7 +263,10 @@ int FacebookProto::OnBuildStatusMenu(WPARAM, LPARAM) mi.name.a = LPGEN("Check Newsfeeds");
mi.hIcolibItem = GetIconHandle("newsfeed");
Menu_AddProtoMenuItem(&mi, m_szModuleName);
+}
+int FacebookProto::OnBuildStatusMenu(WPARAM, LPARAM)
+{
ToggleStatusMenuItems(this->isOnline());
return 0;
}
|