summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_opt.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-11-09 09:19:38 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-11-09 09:19:38 +0000
commit581844d52f2b91a45240a1e7bf7cd95cc93b0837 (patch)
tree5f16a4047144eeca67deb3dd3b7d98cd191a6096 /protocols/JabberG/src/jabber_opt.cpp
parentb067cb5f4dd97509448956205c41f96cce6f8473 (diff)
fix for the frame processing in Jabber
git-svn-id: http://svn.miranda-ng.org/main/trunk@15702 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_opt.cpp')
-rw-r--r--protocols/JabberG/src/jabber_opt.cpp10
1 files changed, 8 insertions, 2 deletions
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)
{