summaryrefslogtreecommitdiff
path: root/src/modules/netlib/netliblog.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-15 21:04:26 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-15 21:04:26 +0000
commitd949a7ed17fd90bfc1ee5d85c83812b974037531 (patch)
treec33e397185df5c4c974afa4ad385fa63dc48e637 /src/modules/netlib/netliblog.cpp
parent90b4d09356a49c0f1c9f4ca0dc1cbc27f11fc2ae (diff)
- fix for the Online/Offline button in clist_mw
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@2320 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/netlib/netliblog.cpp')
-rw-r--r--src/modules/netlib/netliblog.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/netlib/netliblog.cpp b/src/modules/netlib/netliblog.cpp
index 4eac00a0c4..01f5855e10 100644
--- a/src/modules/netlib/netliblog.cpp
+++ b/src/modules/netlib/netliblog.cpp
@@ -211,7 +211,7 @@ static INT_PTR CALLBACK LogOptionsDlgProc(HWND hwndDlg, UINT message, WPARAM wPa
GetDlgItemText(hwndDlg, IDC_RUNATSTART, str, MAX_PATH);
db_set_ts(NULL, "Netlib", "RunAtStart", str);
- DBWriteContactSettingByte(NULL, "Netlib", "ShowLogOptsAtStart", (BYTE)IsDlgButtonChecked(hwndDlg, IDC_SHOWTHISDLGATSTART));
+ db_set_b(NULL, "Netlib", "ShowLogOptsAtStart", (BYTE)IsDlgButtonChecked(hwndDlg, IDC_SHOWTHISDLGATSTART));
mir_cslock lck(logOptions.cs);
@@ -264,16 +264,16 @@ static INT_PTR CALLBACK LogOptionsDlgProc(HWND hwndDlg, UINT message, WPARAM wPa
}
if (logOptions.save) {
- DBWriteContactSettingByte(NULL, "Netlib", "DumpRecv", (BYTE)logOptions.dumpRecv);
- DBWriteContactSettingByte(NULL, "Netlib", "DumpSent", (BYTE)logOptions.dumpSent);
- DBWriteContactSettingByte(NULL, "Netlib", "DumpProxy", (BYTE)logOptions.dumpProxy);
- DBWriteContactSettingByte(NULL, "Netlib", "DumpSsl", (BYTE)logOptions.dumpSsl);
- DBWriteContactSettingByte(NULL, "Netlib", "TextDumps", (BYTE)logOptions.textDumps);
- DBWriteContactSettingByte(NULL, "Netlib", "AutoDetectText", (BYTE)logOptions.autoDetectText);
- DBWriteContactSettingByte(NULL, "Netlib", "TimeFormat", (BYTE)logOptions.timeFormat);
- DBWriteContactSettingByte(NULL, "Netlib", "ShowUser", (BYTE)logOptions.showUser);
- DBWriteContactSettingByte(NULL, "Netlib", "ToOutputDebugString", (BYTE)logOptions.toOutputDebugString);
- DBWriteContactSettingByte(NULL, "Netlib", "ToFile", (BYTE)logOptions.toFile);
+ db_set_b(NULL, "Netlib", "DumpRecv", (BYTE)logOptions.dumpRecv);
+ db_set_b(NULL, "Netlib", "DumpSent", (BYTE)logOptions.dumpSent);
+ db_set_b(NULL, "Netlib", "DumpProxy", (BYTE)logOptions.dumpProxy);
+ db_set_b(NULL, "Netlib", "DumpSsl", (BYTE)logOptions.dumpSsl);
+ db_set_b(NULL, "Netlib", "TextDumps", (BYTE)logOptions.textDumps);
+ db_set_b(NULL, "Netlib", "AutoDetectText", (BYTE)logOptions.autoDetectText);
+ db_set_b(NULL, "Netlib", "TimeFormat", (BYTE)logOptions.timeFormat);
+ db_set_b(NULL, "Netlib", "ShowUser", (BYTE)logOptions.showUser);
+ db_set_b(NULL, "Netlib", "ToOutputDebugString", (BYTE)logOptions.toOutputDebugString);
+ db_set_b(NULL, "Netlib", "ToFile", (BYTE)logOptions.toFile);
db_set_ts(NULL, "Netlib", "File", logOptions.szFile ? logOptions.szUserFile: _T(""));
logOptions.save = 0;
}