summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/clc.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-04-08 14:45:54 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-04-08 14:45:54 +0000
commitafa73da4259ee9a00e60570031f94338542636d8 (patch)
treecacf0a9d83484c8a3143e3b6aa0c8af42ed022a4 /plugins/Clist_nicer/src/clc.cpp
parent0a41e7f5bd2d3cd705e5806b3190ff7afadde131 (diff)
- fixes #596 (Clist nicer skin doesn't show buttons)
- code formatting fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@8891 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/clc.cpp')
-rw-r--r--plugins/Clist_nicer/src/clc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Clist_nicer/src/clc.cpp b/plugins/Clist_nicer/src/clc.cpp
index 10a8546a3b..a4aecd563b 100644
--- a/plugins/Clist_nicer/src/clc.cpp
+++ b/plugins/Clist_nicer/src/clc.cpp
@@ -166,9 +166,10 @@ static int ClcSettingChanged(WPARAM hContact, LPARAM lParam)
pcli->pfnClcBroadcast(CLM_AUTOREBUILD, 0, 0);
}
}
- else if (!__strcmp(cws->szModule, "Skin")) {
+ else if (!__strcmp(cws->szModule, "Skin") && !__strcmp(cws->szSetting, "UseSound")) {
cfg::dat.soundsOff = cfg::getByte(cws->szModule, cws->szSetting, 0) ? 0 : 1;
- ClcSetButtonState(IDC_TBSOUND, cfg::dat.soundsOff ? BST_UNCHECKED : BST_CHECKED);
+ ClcSetButtonState(IDC_TBSOUND, cfg::dat.soundsOff ? BST_CHECKED : BST_UNCHECKED);
+ SetButtonStates(pcli->hwndContactList);
}
else if (szProto == NULL) {
if ( !__strcmp(cws->szSetting, "XStatusId"))