diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_opt.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_opt.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index 44f6c1c13b..90817831b1 100644 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -582,6 +582,11 @@ private: return;
}
+ PSHNOTIFY pshn = {0};
+ pshn.hdr.code = PSN_APPLY;
+ pshn.hdr.hwndFrom = m_hwnd;
+ SendMessage(m_hwnd, WM_NOTIFY, 0, (LPARAM)&pshn);
+
ThreadData regInfo(m_proto, JABBER_SESSION_NORMAL);
m_txtUsername.GetText(regInfo.username, SIZEOF(regInfo.username));
m_txtPassword.GetText(regInfo.password, SIZEOF(regInfo.password));
@@ -589,7 +594,6 @@ private: if (m_chkManualHost.GetState() == BST_CHECKED) {
regInfo.port = (WORD)m_txtManualPort.GetInt();
m_txtManualHost.GetTextA(regInfo.manualHost, SIZEOF(regInfo.manualHost));
- regInfo.proto->m_options.ManualConnect = TRUE;
}
else {
regInfo.port = (WORD)m_txtPort.GetInt();
@@ -1907,6 +1911,11 @@ private: return;
}
+ PSHNOTIFY pshn = {0};
+ pshn.hdr.code = PSN_APPLY;
+ pshn.hdr.hwndFrom = m_hwnd;
+ SendMessage(m_hwnd, WM_NOTIFY, 0, (LPARAM)&pshn);
+
ThreadData regInfo(m_proto, JABBER_SESSION_NORMAL);
m_txtUsername.GetText(regInfo.username, SIZEOF(regInfo.username));
m_txtPassword.GetText(regInfo.password, SIZEOF(regInfo.password));
@@ -1915,7 +1924,6 @@ private: if (m_chkManualHost.GetState() == BST_CHECKED)
{
m_txtManualHost.GetTextA(regInfo.manualHost, SIZEOF(regInfo.manualHost));
- regInfo.proto->m_options.ManualConnect = TRUE;
} else
{
regInfo.manualHost[0] = '\0';
|