diff options
Diffstat (limited to 'protocols/Sametime/src')
-rw-r--r-- | protocols/Sametime/src/sametime_proto.cpp | 2 | ||||
-rw-r--r-- | protocols/Sametime/src/sametime_proto.h | 2 | ||||
-rw-r--r-- | protocols/Sametime/src/sametime_session.cpp | 8 |
3 files changed, 1 insertions, 11 deletions
diff --git a/protocols/Sametime/src/sametime_proto.cpp b/protocols/Sametime/src/sametime_proto.cpp index 2aaab309e0..27fbb51cf4 100644 --- a/protocols/Sametime/src/sametime_proto.cpp +++ b/protocols/Sametime/src/sametime_proto.cpp @@ -65,8 +65,6 @@ CSametimeProto::~CSametimeProto() {
debugLog(_T("CSametimeProto::~CSametimeProto() start"));
- DeinitSessionMenu();
-
DeinitAwayMsg();
UnregisterPopups();
diff --git a/protocols/Sametime/src/sametime_proto.h b/protocols/Sametime/src/sametime_proto.h index 4f3a249cf3..35082ecd23 100644 --- a/protocols/Sametime/src/sametime_proto.h +++ b/protocols/Sametime/src/sametime_proto.h @@ -111,7 +111,6 @@ struct CSametimeProto : public PROTO<CSametimeProto> void SessionStarted();
void SessionStopping();
void InitSessionMenu();
- void DeinitSessionMenu();
int LogIn(int status, HANDLE hNetlibUser);
int LogOut();
int SetSessionStatus(int status);
@@ -171,7 +170,6 @@ struct CSametimeProto : public PROTO<CSametimeProto> // sametime_session.cpp
bool first_online; // set our status after the first online status comes from the server
- HANDLE hSessionAnnounceMenuItem;
int login_status;
bool idle_status;
int idle_timerid;
diff --git a/protocols/Sametime/src/sametime_session.cpp b/protocols/Sametime/src/sametime_session.cpp index 551ab48a57..cea3d51431 100644 --- a/protocols/Sametime/src/sametime_session.cpp +++ b/protocols/Sametime/src/sametime_session.cpp @@ -571,11 +571,5 @@ void CSametimeProto::InitSessionMenu() mi.pszService = service;
mi.icolibItem = GetIconHandle(IDI_ICON_ANNOUNCE);
mi.pszContactOwner = m_szModuleName;
- hSessionAnnounceMenuItem = Menu_AddContactMenuItem(&mi);
-}
-
-void CSametimeProto::DeinitSessionMenu()
-{
- debugLog(_T("CSametimeProto::DeinitSessionMenu()"));
- CallService(MO_REMOVEMENUITEM, (WPARAM)hSessionAnnounceMenuItem, 0);
+ Menu_AddContactMenuItem(&mi);
}
|