From d3a5b0820b259d789b8ea606645890ffcb6d9741 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Mon, 7 Jun 2010 22:12:34 +0100
Subject: 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

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;
-- 
cgit v0.10.2-6-g49f6