From 8bd63c2fb2e8578a5b084838872bedc2cd29227e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 25 Nov 2023 13:46:50 +0300 Subject: for #3957 - Import creates useless Clist/MyHandle contact settings --- plugins/Import/src/import.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp index 675d6fbf76..2ad6ce1605 100644 --- a/plugins/Import/src/import.cpp +++ b/plugins/Import/src/import.cpp @@ -677,11 +677,10 @@ void CImportBatch::ImportMeta(DBCachedContact *ccSrc) // ok, now transfer the common data CreateGroup(tszGroup, hDest); - if (tszNick && *tszNick) { - db_set_ws(hDest, "CList", "MyHandle", tszNick); + if (tszNick && *tszNick) AddMessage(LPGENW("Added metacontact '%s'"), tszNick.get()); - } - else AddMessage(LPGENW("Added metacontact")); + else + AddMessage(LPGENW("Added metacontact")); } ImportContactData icd = { ccSrc->contactID, ccDst->contactID, META_PROTO, META_PROTO, true }; @@ -807,11 +806,10 @@ MCONTACT CImportBatch::ImportContact(MCONTACT hSrc) CreateGroup(tszGroup, hDst); - if (tszNick && *tszNick) { - db_set_ws(hDst, "CList", "MyHandle", tszNick); + if (tszNick && *tszNick) AddMessage(LPGENW("Added %S contact %s, '%s'"), szDstModuleName, pszUniqueID, tszNick.get()); - } - else AddMessage(LPGENW("Added %S contact %s"), szDstModuleName, pszUniqueID); + else + AddMessage(LPGENW("Added %S contact %s"), szDstModuleName, pszUniqueID); srcDb->FreeVariant(&dbv); -- cgit v1.2.3