summaryrefslogtreecommitdiff
path: root/plugins/Import/src/import.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Import/src/import.cpp')
-rw-r--r--plugins/Import/src/import.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp
index 94ec735979..5f5f322307 100644
--- a/plugins/Import/src/import.cpp
+++ b/plugins/Import/src/import.cpp
@@ -416,7 +416,7 @@ DBCachedContact* FindDestMeta(DBCachedContact *ccSrc)
int i;
for (i = 0; i < ccSrc->nSubs; i++) {
MCONTACT hDest = MapContact(ccSrc->pSubs[i]);
- if (hDest == INVALID_CONTACT_ID || ccSrc->pSubs[i] != hDest)
+ if (hDest == INVALID_CONTACT_ID || cc->pSubs[i] != hDest)
break;
}
@@ -540,6 +540,7 @@ static MCONTACT ImportContact(MCONTACT hSrc)
if (hDst != INVALID_CONTACT_ID) {
AddMessage(LPGENT("Skipping duplicate %S contact %s"), cc->szProto, pszUniqueID);
srcDb->FreeVariant(&dbv);
+ arContactMap.insert(new ContactMap(hSrc, hDst));
return NULL;
}