summaryrefslogtreecommitdiff
path: root/metacontacts/meta_options.c
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-20 05:41:03 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-20 05:41:03 +0000
commit2afeed2f72aa6044fa23dcfa8f594206099f7867 (patch)
tree59df7ac65729d7b0b8f7867c42bb28f251cb6adb /metacontacts/meta_options.c
parentd73e2c675deac8d5fbf67767ac4bb26fe9d054db (diff)
minor options fix (set priority to default when default checkbox checked)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@293 4f64403b-2f21-0410-a795-97e2b3489a10
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 );