summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/dialogs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-09-19 19:39:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-09-19 19:39:47 +0000
commit23f32f99462c0cda3fc5f424d62e96c04610dd2c (patch)
tree0af9d7a7fd4bef44cbf464497c7ac5e362e50b55 /protocols/WhatsApp/src/dialogs.cpp
parent790a9ef705b7daa7017bec41775980814bc42c59 (diff)
sms code field divided into two separate fields
git-svn-id: http://svn.miranda-ng.org/main/trunk@10531 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/dialogs.cpp')
-rw-r--r--protocols/WhatsApp/src/dialogs.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/dialogs.cpp b/protocols/WhatsApp/src/dialogs.cpp
index a434493c04..9ac21dc690 100644
--- a/protocols/WhatsApp/src/dialogs.cpp
+++ b/protocols/WhatsApp/src/dialogs.cpp
@@ -13,7 +13,8 @@ INT_PTR CALLBACK WhatsAppAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPA
proto = reinterpret_cast<WhatsAppProto*>(lparam);
SetWindowLongPtr(hwnd, GWLP_USERDATA, lparam);
- SendDlgItemMessage(hwnd, IDC_PW, EM_LIMITTEXT, 6, 0);
+ SendDlgItemMessage(hwnd, IDC_PW, EM_LIMITTEXT, 3, 0);
+ SendDlgItemMessage(hwnd, IDC_PW2, EM_LIMITTEXT, 3, 0);
CheckDlgButton(hwnd, IDC_SSL, db_get_b(NULL, proto->ModuleName(), WHATSAPP_KEY_SSL, 0));
DBVARIANT dbv;
@@ -33,12 +34,14 @@ INT_PTR CALLBACK WhatsAppAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPA
}
EnableWindow(GetDlgItem(hwnd, IDC_PW), FALSE);
+ EnableWindow(GetDlgItem(hwnd, IDC_PW2), FALSE);
if (!proto->isOffline()) {
SendDlgItemMessage(hwnd, IDC_CC, EM_SETREADONLY, 1, 0);
SendDlgItemMessage(hwnd, IDC_LOGIN, EM_SETREADONLY, 1, 0);
SendDlgItemMessage(hwnd, IDC_NICK, EM_SETREADONLY, 1, 0);
SendDlgItemMessage(hwnd, IDC_PW, EM_SETREADONLY, 1, 0);
+ SendDlgItemMessage(hwnd, IDC_PW2, EM_SETREADONLY, 1, 0);
EnableWindow(GetDlgItem(hwnd, IDC_SSL), FALSE);
}
@@ -88,6 +91,7 @@ INT_PTR CALLBACK WhatsAppAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPA
case IDC_NICK:
case IDC_SSL:
case IDC_PW:
+ case IDC_PW2:
SendMessage(GetParent(hwnd), PSM_CHANGED, 0, 0);
}
}