From 581844d52f2b91a45240a1e7bf7cd95cc93b0837 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 9 Nov 2015 09:19:38 +0000 Subject: fix for the frame processing in Jabber git-svn-id: http://svn.miranda-ng.org/main/trunk@15702 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_opt.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'protocols/JabberG/src/jabber_opt.cpp') diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index 30a1b3b212..09fed5861d 100644 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -760,15 +760,18 @@ class CDlgOptAdvanced: public CJabberDlgBase CCtrlEdit m_txtProxy; CCtrlTreeOpts m_otvOptions; + BYTE m_oldFrameValue; + public: - CDlgOptAdvanced(CJabberProto *proto): + CDlgOptAdvanced(CJabberProto *proto) : CJabberDlgBase(proto, IDD_OPT_JABBER2, false), m_chkDirect(this, IDC_DIRECT), m_chkDirectManual(this, IDC_DIRECT_MANUAL), m_chkProxy(this, IDC_PROXY_MANUAL), m_txtDirect(this, IDC_DIRECT_ADDR), m_txtProxy(this, IDC_PROXY_ADDR), - m_otvOptions(this, IDC_OPTTREE) + m_otvOptions(this, IDC_OPTTREE), + m_oldFrameValue(proto->m_options.DisableFrame) { CreateLink(m_chkDirect, proto->m_options.BsDirect); CreateLink(m_chkDirectManual, proto->m_options.BsDirectManual); @@ -820,6 +823,9 @@ public: void OnApply() { + if (m_proto->m_options.DisableFrame != m_oldFrameValue) + m_proto->InitInfoFrame(); + BOOL bChecked = m_proto->m_options.ShowTransport; LISTFOREACH(index, m_proto, LIST_ROSTER) { -- cgit v1.2.3