From 65f3c2b16152a7aaf4f4e6de6f59b204a91abca6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 May 2016 10:55:20 +0000 Subject: speeding up launch git-svn-id: http://svn.miranda-ng.org/main/trunk@16853 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MRA/src/Mra_functions.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/MRA') diff --git a/protocols/MRA/src/Mra_functions.cpp b/protocols/MRA/src/Mra_functions.cpp index 06e1890847..1ce63f67ba 100644 --- a/protocols/MRA/src/Mra_functions.cpp +++ b/protocols/MRA/src/Mra_functions.cpp @@ -457,8 +457,11 @@ DWORD CMraProto::SetContactBasicInfoW(MCONTACT hContact, DWORD dwSetInfoFlags, D setDword(hContact, "GroupID", dwGroupID); MraGroupItem *grp = m_groups.find((MraGroupItem*)&dwGroupID); - if (grp) - db_set_ts(hContact, "CList", "Group", grp->m_name); + if (grp) { + ptrT tszGroup(db_get_tsa(hContact, "CList", "Group")); + if (mir_tstrcmp(tszGroup, grp->m_name)) + db_set_ts(hContact, "CList", "Group", grp->m_name); + } } if ((dwFlags & SCBIF_NICK) && wszNick != NULL && !wszNick->IsEmpty()) { -- cgit v1.2.3