summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-05-19 10:55:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-05-19 10:55:20 +0000
commit65f3c2b16152a7aaf4f4e6de6f59b204a91abca6 (patch)
treec0c2af0e9f699a84b2078e3b7978fa5fe2c9d375 /protocols
parent5289c28256d3474da6abefac968fb1a6d1133bcd (diff)
speeding up launch
git-svn-id: http://svn.miranda-ng.org/main/trunk@16853 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/MRA/src/Mra_functions.cpp7
1 files changed, 5 insertions, 2 deletions
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()) {