summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-02-15 18:00:58 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-02-15 18:00:58 +0000
commit0f2e65a495f39f50e0d3fe1ee030a0e0df1cc7bc (patch)
tree59d2b58c0384c8163b4f8c521a1e631f731d0e1a /protocols
parent13e735de8b05b523ff6c24f33a07945065b4cd9e (diff)
minor fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@12132 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Tox/src/tox_options.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_options.cpp b/protocols/Tox/src/tox_options.cpp
index a44af9024d..1445b3e8e4 100644
--- a/protocols/Tox/src/tox_options.cpp
+++ b/protocols/Tox/src/tox_options.cpp
@@ -362,6 +362,8 @@ INT_PTR CALLBACK ToxNodesOptionsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR
case WM_INITDIALOG:
TranslateDialogDefault(hwndDlg);
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, 0);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CHANGE), FALSE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_REMOVE), FALSE);
CreateList(hwndList);
UpdateList(hwndList);
return TRUE;
@@ -442,6 +444,8 @@ INT_PTR CALLBACK ToxNodesOptionsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR
case LVN_ITEMCHANGED:
NMLISTVIEW *nmlv = (NMLISTVIEW *)lParam;
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CHANGE), TRUE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_REMOVE), TRUE);
if (((nmlv->uNewState ^ nmlv->uOldState) & LVIS_STATEIMAGEMASK) && !UpdateListFlag)
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;