diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-06-07 21:12:34 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-06-07 21:12:34 (GMT) |
commit | d3a5b0820b259d789b8ea606645890ffcb6d9741 (patch) | |
tree | fba4a4295da43cca3474b8bc1cfb5f8dd165b2f2 /Swift/QtUI/Roster | |
parent | c34ba0618c794fca2d9a656670f5ae980dfcd629 (diff) | |
download | swift-contrib-d3a5b0820b259d789b8ea606645890ffcb6d9741.zip swift-contrib-d3a5b0820b259d789b8ea606645890ffcb6d9741.tar.bz2 |
Tentative fix for segfaulting on roster changes.
Logically, this would fix it - but it's not reproduceable to check
so we'll have to wait and see.
It's possible that this is going to impact performance. Testing
required.
Resolves: #414
Diffstat (limited to 'Swift/QtUI/Roster')
-rw-r--r-- | Swift/QtUI/Roster/RosterModel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/Roster/RosterModel.cpp b/Swift/QtUI/Roster/RosterModel.cpp index a801d3f..fa9becd 100644 --- a/Swift/QtUI/Roster/RosterModel.cpp +++ b/Swift/QtUI/Roster/RosterModel.cpp @@ -37,7 +37,8 @@ void RosterModel::setRoster(Roster* roster) { } void RosterModel::reLayout() { - emit layoutChanged(); + //emit layoutChanged(); + reset(); foreach (RosterItem* item, roster_->getRoot()->getDisplayedChildren()) { GroupRosterItem* child = dynamic_cast<GroupRosterItem*>(item); if (!child) continue; |