summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/oauth.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-02-25 14:45:28 +0300
committeraunsane <aunsane@gmail.com>2018-02-25 14:45:28 +0300
commita76776079b6d15e92dffd0c5c0016389092b1c8b (patch)
treeac686f25c8714b11824624b7773f499035b6827c /plugins/CloudFile/src/oauth.cpp
parent7fc01c9c474a732cd8b978d2f163f0839b2f956d (diff)
Fixes related with 7fc01c9
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;