summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_dialogs.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-07-25 12:30:11 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-07-25 12:30:11 +0000
commitbc55bf103dc79145ddd24e93a8f96fc6e8cf46d7 (patch)
treef0a516758a31572a7a2d07f5b0d1d7b002428003 /protocols/SkypeWeb/src/skype_dialogs.cpp
parentb92e4c685ca1bfa9d6168c4562013ebca306b79d (diff)
SkypeWeb: Closing dialogs on logout
git-svn-id: http://svn.miranda-ng.org/main/trunk@14682 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_dialogs.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_dialogs.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_dialogs.cpp b/protocols/SkypeWeb/src/skype_dialogs.cpp
index 64a5aae03a..9cf2c4f2ec 100644
--- a/protocols/SkypeWeb/src/skype_dialogs.cpp
+++ b/protocols/SkypeWeb/src/skype_dialogs.cpp
@@ -17,8 +17,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdafx.h"
-//CSkypeInvideDlg
+void CSkypeProto::CloseDialogs()
+{
+ {
+ mir_cslock lck(m_GCCreateDialogsLock);
+ for (int i = 0; i < m_GCCreateDialogs.getCount(); i++)
+ m_GCCreateDialogs[i]->Close();
+ }
+
+ {
+ mir_cslock lck(m_InviteDialogsLock);
+ for (int i = 0; i < m_InviteDialogs.getCount(); i++)
+ m_InviteDialogs[i]->Close();
+ }
+}
+//CSkypeInvideDlg
CSkypeInviteDlg::CSkypeInviteDlg(CSkypeProto *proto) :
CSkypeDlgBase(proto, IDD_GC_INVITE, false), m_ok(this, IDOK), m_cancel(this, IDCANCEL), m_combo(this, IDC_CONTACT)
{
@@ -43,9 +57,8 @@ void CSkypeInviteDlg::btnOk_OnOk(CCtrlButton*)
}
//CSkypeGCCreateDlg
-
CSkypeGCCreateDlg::CSkypeGCCreateDlg(CSkypeProto *proto) :
-CSkypeDlgBase(proto, IDD_GC_CREATE, false), m_ok(this, IDOK), m_cancel(this, IDCANCEL), m_clc(this, IDC_CLIST), m_ContactsList(1)
+ CSkypeDlgBase(proto, IDD_GC_CREATE, false), m_ok(this, IDOK), m_cancel(this, IDCANCEL), m_clc(this, IDC_CLIST), m_ContactsList(1)
{
m_ok.OnClick = Callback(this, &CSkypeGCCreateDlg::btnOk_OnOk);
}