diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-13 22:25:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-13 22:25:04 +0000 |
commit | 5849172a0425c813f3f57abbbf941022fa420950 (patch) | |
tree | 4fde5541febfb4a46fb8c02c9f1107f43d86c7ee /src/modules/protocols/protoaccs.cpp | |
parent | 27290a93d4a46e8b7ecdd1b12114067630390cba (diff) |
fix for proto options drawing
git-svn-id: http://svn.miranda-ng.org/main/trunk@1914 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/protocols/protoaccs.cpp')
-rw-r--r-- | src/modules/protocols/protoaccs.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/protocols/protoaccs.cpp b/src/modules/protocols/protoaccs.cpp index 2f0a4d29c5..49c8a87765 100644 --- a/src/modules/protocols/protoaccs.cpp +++ b/src/modules/protocols/protoaccs.cpp @@ -185,7 +185,7 @@ void WriteDbAccounts() db_set_dw(NULL, "Protocols", buf, pa->bIsEnabled);
_itoa(OFFSET_NAME+i, buf, 10);
- DBWriteContactSettingTString(NULL, "Protocols", buf, pa->tszAccountName);
+ db_set_ts(NULL, "Protocols", buf, pa->tszAccountName);
}
DBDeleteContactSetting(0, "Protocols", "ProtoCount");
@@ -268,10 +268,8 @@ int LoadAccountsModule(void) if (pa->ppro)
continue;
- if ( !Proto_IsAccountEnabled(pa)) {
- pa->bDynDisabled = TRUE;
+ if ( !Proto_IsAccountEnabled(pa))
continue;
- }
if ( !ActivateAccount(pa))
pa->bDynDisabled = TRUE;
@@ -535,7 +533,6 @@ void DeactivateAccount(PROTOACCOUNT* pa, bool bIsDynamic, bool bErase) param->bIsDynamic = bIsDynamic;
param->bErase = bErase;
pa->ppro = NULL;
- pa->bDynDisabled = TRUE;
if (bIsDynamic)
mir_forkthread((pThreadFunc)DeactivationThread, param);
else
|