From c7a87b51ee671f7c5a1bbdd80e001a863f9e7215 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 6 May 2013 14:51:45 +0000 Subject: Skype: cleanup for the SRMM button git-svn-id: http://svn.miranda-ng.org/main/trunk@4590 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_events.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'protocols/Skype/src/skype_events.cpp') diff --git a/protocols/Skype/src/skype_events.cpp b/protocols/Skype/src/skype_events.cpp index 58450e7d2f..6935d107b6 100644 --- a/protocols/Skype/src/skype_events.cpp +++ b/protocols/Skype/src/skype_events.cpp @@ -9,8 +9,7 @@ int CSkypeProto::OnModulesLoaded(WPARAM, LPARAM) if (::ServiceExists(MS_BB_ADDBUTTON)) { - BBButton bbd = {0}; - bbd.cbSize = sizeof(BBButton); + BBButton bbd = { sizeof(bbd) }; bbd.pszModuleName = MODULE; bbd.bbbFlags = BBBF_ISIMBUTTON | BBBF_ISRSIDEBUTTON; @@ -31,6 +30,14 @@ int CSkypeProto::OnModulesLoaded(WPARAM, LPARAM) int CSkypeProto::OnPreShutdown(WPARAM, LPARAM) { + if (::ServiceExists(MS_BB_REMOVEBUTTON)) + { + BBButton bbd = { sizeof(bbd) }; + bbd.pszModuleName = MODULE; + bbd.dwButtonID = BBB_ID_CONF_SPAWN; + ::CallService(MS_BB_REMOVEBUTTON, 0, (LPARAM)&bbd); + } + this->SetStatus(ID_STATUS_OFFLINE); this->UninitInstanceHookList(); -- cgit v1.2.3