diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/database/dbini.cpp | 5 | ||||
-rw-r--r-- | src/modules/skin/sounds.cpp | 11 |
2 files changed, 5 insertions, 11 deletions
diff --git a/src/modules/database/dbini.cpp b/src/modules/database/dbini.cpp index 8ccf5af4d5..6b56ad2f9a 100644 --- a/src/modules/database/dbini.cpp +++ b/src/modules/database/dbini.cpp @@ -274,10 +274,7 @@ static void ProcessIniFile(TCHAR* szIniPath, char *szSafeSections, char *szUnsaf while (setting_items) {
SettingsList *next = setting_items->next;
- DBCONTACTGETSETTING dbcgs;
- dbcgs.szModule = szSection;
- dbcgs.szSetting = setting_items->name;
- CallService(MS_DB_CONTACT_DELETESETTING, 0, (LPARAM)&dbcgs);
+ db_unset(NULL, szSection, setting_items->name);
mir_free(setting_items->name);
mir_free(setting_items);
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);
} }
|