summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_dialogs.cpp
diff options
context:
space:
mode:
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);
}