From 44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 4 Mar 2018 01:39:30 +0300 Subject: Add support for hightlight attribute in groups.xml This attribute allow to highlight gm groups based on groups.xml --- src/being/being.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/being/being.cpp') diff --git a/src/being/being.cpp b/src/being/being.cpp index 3b012fd90..d447221f8 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -5586,5 +5586,11 @@ void Being::setGroupId(const int id) { mGroupId = id; showGmBadge(id != 0); + const bool gm = GroupDb::getHighlightName(mGroupId); + if (mIsGM != gm) + { + mIsGM = gm; + updateColors(); + } } } -- cgit v1.2.3-70-g09d2