summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/SkypeWeb/src/skype_options.cpp7
-rw-r--r--protocols/SkypeWeb/src/skype_options.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_options.cpp b/protocols/SkypeWeb/src/skype_options.cpp
index 9f21c48e5b..f48b652c74 100644
--- a/protocols/SkypeWeb/src/skype_options.cpp
+++ b/protocols/SkypeWeb/src/skype_options.cpp
@@ -34,6 +34,7 @@ CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog)
CreateLink(m_allasunread, "MarkMesUnread", DBVT_BYTE, 1);
CreateLink(m_place, "Place", _T(""));
CreateLink(m_usehostname, "UseHostName", DBVT_BYTE, 0);
+ m_usehostname.OnChange = Callback(this, &CSkypeOptionsMain::OnUsehostnameCheck);
}
void CSkypeOptionsMain::OnInitDialog()
@@ -42,6 +43,7 @@ void CSkypeOptionsMain::OnInitDialog()
m_skypename.SetTextA(ptrA(m_proto->getStringA(SKYPE_SETTINGS_ID)));
m_password.SetTextA(ptrA(m_proto->getStringA("Password")));
+ m_place.Enable(!m_proto->getBool("UseHostName", false));
SendMessage(m_skypename.GetHwnd(), EM_LIMITTEXT, 32, 0);
SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 20, 0);
SendMessage(m_group.GetHwnd(), EM_LIMITTEXT, 64, 0);
@@ -76,4 +78,9 @@ int CSkypeProto::OnOptionsInit(WPARAM wParam, LPARAM)
Options_AddPage(wParam, &odp);
return 0;
+}
+
+void CSkypeOptionsMain::OnUsehostnameCheck(CCtrlCheck* p)
+{
+ m_place.Enable(!m_usehostname.GetState());
} \ No newline at end of file
diff --git a/protocols/SkypeWeb/src/skype_options.h b/protocols/SkypeWeb/src/skype_options.h
index 6e3b0a8533..27174d62c4 100644
--- a/protocols/SkypeWeb/src/skype_options.h
+++ b/protocols/SkypeWeb/src/skype_options.h
@@ -35,6 +35,7 @@ protected:
void OnInitDialog();
void OnApply();
+ void OnUsehostnameCheck(CCtrlCheck*);
public:
static CDlgBase *CreateAccountManagerPage(void *param, HWND owner)