summaryrefslogtreecommitdiff
path: root/metacontacts/meta_options.c
diff options
context:
space:
mode:
Diffstat (limited to 'metacontacts/meta_options.c')
-rw-r--r--metacontacts/meta_options.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/metacontacts/meta_options.c b/metacontacts/meta_options.c
index 6af47fd..25b13db 100644
--- a/metacontacts/meta_options.c
+++ b/metacontacts/meta_options.c
@@ -566,7 +566,12 @@ BOOL CALLBACK DlgProcOptsPriorities(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
if(sel != -1) {
BOOL checked = IsDlgButtonChecked(hwndDlg, IDC_CHK_DEFAULT);
int status = SendMessage(GetDlgItem(hwndDlg, IDC_CMB_STATUS), CB_GETITEMDATA, (WPARAM)sel, 0);
- SetPriority(index, status, checked, GetDlgItemInt(hwndDlg, IDC_ED_PRIORITY, 0, FALSE));
+ if(checked) {
+ SetPriority(index, status, TRUE, 0);
+ SetDlgItemInt(hwndDlg, IDC_ED_PRIORITY, GetPriority(index, status), FALSE);
+ } else {
+ SetPriority(index, status, FALSE, GetDlgItemInt(hwndDlg, IDC_ED_PRIORITY, 0, FALSE));
+ }
EnableWindow(GetDlgItem(hwndDlg, IDC_ED_PRIORITY), !checked);
EnableWindow(GetDlgItem(hwndDlg, IDC_SP_PRIORITY), !checked);
SendMessage( GetParent( hwndDlg ), PSM_CHANGED, 0, 0 );