diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-23 22:02:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-23 22:02:44 +0000 |
commit | 01b7a72d43ed1c71544c22c7afb61829762ffe8e (patch) | |
tree | b4c570f41c69097492329b9d18a64f0b42f585ef /src | |
parent | 037286255b6a26ed5fba94c5fe9e68b88c1755f7 (diff) |
same for some another plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@5104 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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);
} }
|