summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-11 12:14:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-11 12:14:03 +0300
commit5eae568174461a3ec041a4615a6798dcdc59b334 (patch)
tree6d680256477e0093f7dd4cd1a500557332ff6322 /plugins
parent7d4ba074744a39500c13e317d9e89e16f7fc9b7f (diff)
Import: fix for lost modules during import
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Import/src/import.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp
index 527e922cfb..453108ef26 100644
--- a/plugins/Import/src/import.cpp
+++ b/plugins/Import/src/import.cpp
@@ -567,13 +567,16 @@ struct ImportContactData
int ModulesEnumProc(const char *szModuleName, void *pParam)
{
+ if (!mir_strcmp(szModuleName, "Protocol"))
+ return 0;
+
ImportContactData *icd = (ImportContactData*)pParam;
if (!mir_strcmp(icd->szSrcProto, szModuleName)) {
if (!icd->bSkipProto)
CopySettings(icd->from, szModuleName, icd->to, icd->szDstProto);
}
- else if (0 != mir_strcmp(szModuleName, "Protocol"))
- CopySettings(icd->from, szModuleName, icd->to, szModuleName);
+ else CopySettings(icd->from, szModuleName, icd->to, szModuleName);
+
return 0;
}
@@ -583,7 +586,7 @@ void ImportContactSettings(AccountMap *pda, MCONTACT hSrc, MCONTACT hDst)
return;
ImportContactData icd = { hSrc, hDst, pda->szSrcAcc, pda->pa->szModuleName, false };
- db_enum_modules(ModulesEnumProc, &icd);
+ srcDb->EnumModuleNames(ModulesEnumProc, &icd);
}
/////////////////////////////////////////////////////////////////////////////////////////