summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/oauth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/oauth.cpp')
-rw-r--r--plugins/CloudFile/src/oauth.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/CloudFile/src/oauth.cpp b/plugins/CloudFile/src/oauth.cpp
index 1f837f021d..9ecd3a9ab8 100644
--- a/plugins/CloudFile/src/oauth.cpp
+++ b/plugins/CloudFile/src/oauth.cpp
@@ -15,14 +15,14 @@ COAuthDlg::COAuthDlg(CCloudService *service, const char *authUrl, pThreadFuncOwn
void COAuthDlg::OnInitDialog()
{
- /*CCtrlBase *ctrl = FindControl(IDC_AUTH_TEXT);
- ptrW format(ctrl->GetText());
+ CCtrlLabel &ctrl = *(CCtrlLabel*)FindControl(IDC_AUTH_TEXT);
+ ptrW format(ctrl.GetText());
wchar_t text[MAX_PATH];
mir_snwprintf(text, (const wchar_t*)format, m_service->GetUserName());
- ctrl->SetText(text);*/
+ ctrl.SetText(text);
}
-void COAuthDlg::Auth_OnClick(CCtrlButton*)
+void COAuthDlg::Auth_OnClick(CCtrlHyperlink*)
{
if (SUCCEEDED(OleInitialize(NULL))) {
CComPtr<IWebBrowser2> browser;