summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-06-07 21:12:34 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-06-07 21:12:34 (GMT)
commitd3a5b0820b259d789b8ea606645890ffcb6d9741 (patch)
treefba4a4295da43cca3474b8bc1cfb5f8dd165b2f2
parentc34ba0618c794fca2d9a656670f5ae980dfcd629 (diff)
downloadswift-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
-rw-r--r--Swift/QtUI/Roster/RosterModel.cpp3
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;