From 01b7a72d43ed1c71544c22c7afb61829762ffe8e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 23 Jun 2013 22:02:44 +0000 Subject: same for some another plugins git-svn-id: http://svn.miranda-ng.org/main/trunk@5104 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/skin/sounds.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/modules/skin') diff --git a/src/modules/skin/sounds.cpp b/src/modules/skin/sounds.cpp index aba9154f15..a4f5c52bcb 100644 --- a/src/modules/skin/sounds.cpp +++ b/src/modules/skin/sounds.cpp @@ -360,13 +360,10 @@ INT_PTR CALLBACK DlgProcSoundOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM while (tvic.hItem != NULL) { tvic.mask = TVIF_PARAM | TVIF_HANDLE | TVIF_STATE; TreeView_GetItem(hwndTree, &tvic); - if (((tvic.state & TVIS_STATEIMAGEMASK) >> 12 == 2)) { - DBCONTACTGETSETTING cgs; - cgs.szModule = "SkinSoundsOff"; - cgs.szSetting = arSounds[tvic.lParam].name; - CallService(MS_DB_CONTACT_DELETESETTING, (WPARAM)(HANDLE)NULL, (LPARAM)&cgs); - } - else db_set_b(NULL, "SkinSoundsOff", arSounds[tvic.lParam].name, 1); + if (((tvic.state & TVIS_STATEIMAGEMASK) >> 12 == 2)) + db_unset(NULL, "SkinSoundsOff", arSounds[tvic.lParam].name); + else + db_set_b(NULL, "SkinSoundsOff", arSounds[tvic.lParam].name, 1); tvic.hItem = TreeView_GetNextSibling(hwndTree, tvic.hItem); } } -- cgit v1.2.3