diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-04-30 12:37:13 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-04-30 12:37:13 (GMT) |
commit | 0c4887461ea3009f2f716ab0965f87471d5ac099 (patch) | |
tree | 039fd2f83d5efbbdaf19ac95c46e7c0e3eb6c6e5 /Swift/Controllers/Roster/GroupRosterItem.cpp | |
parent | bc6642978f7477f3c98a25c58e31c2451f41a39f (diff) | |
download | swift-contrib-0c4887461ea3009f2f716ab0965f87471d5ac099.zip swift-contrib-0c4887461ea3009f2f716ab0965f87471d5ac099.tar.bz2 |
Allow groups to be resorted based on changing names.
Resolves: #794
Diffstat (limited to 'Swift/Controllers/Roster/GroupRosterItem.cpp')
-rw-r--r-- | Swift/Controllers/Roster/GroupRosterItem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/Controllers/Roster/GroupRosterItem.cpp b/Swift/Controllers/Roster/GroupRosterItem.cpp index a1c1156..2b56d1f 100644 --- a/Swift/Controllers/Roster/GroupRosterItem.cpp +++ b/Swift/Controllers/Roster/GroupRosterItem.cpp @@ -224,7 +224,8 @@ void GroupRosterItem::handleChildrenChanged(GroupRosterItem* group) { } else { displayedChildren_.erase(std::remove(displayedChildren_.begin(), displayedChildren_.end(), group), displayedChildren_.end()); } - if (oldSize != getDisplayedChildren().size()) { + + if (oldSize != getDisplayedChildren().size() || sortDisplayed()) { onChildrenChanged(); onDataChanged(); } |