diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-08-09 14:37:57 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-08-09 14:37:57 (GMT) |
commit | b589aa3732712c31da44523fa60fc5c4bc92ea9b (patch) | |
tree | 8874c488a7d3f40669a69276dcbbdebb2fa3cd97 /Swiften | |
parent | fdb63d1c161ff951969244906a77be016d9b2f02 (diff) | |
download | swift-contrib-b589aa3732712c31da44523fa60fc5c4bc92ea9b.zip swift-contrib-b589aa3732712c31da44523fa60fc5c4bc92ea9b.tar.bz2 |
Fix long-standing bug with a crash on quit after joining MUCs.
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Roster/GroupRosterItem.h | 4 | ||||
-rw-r--r-- | Swiften/Roster/Roster.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Swiften/Roster/GroupRosterItem.h b/Swiften/Roster/GroupRosterItem.h index f96a868..4065fdb 100644 --- a/Swiften/Roster/GroupRosterItem.h +++ b/Swiften/Roster/GroupRosterItem.h @@ -18,8 +18,8 @@ class GroupRosterItem : public RosterItem { widget_ = factory->createTreeWidgetItem(tree); widget_->setExpanded(true); widget_->setText(name); - widget_->setTextColor(0xFFFFFF); - widget_->setBackgroundColor(0x969696); + widget_->setTextColor(0xFFFFFF); + widget_->setBackgroundColor(0x969696); } ~GroupRosterItem() { diff --git a/Swiften/Roster/Roster.cpp b/Swiften/Roster/Roster.cpp index b51d8eb..b09964c 100644 --- a/Swiften/Roster/Roster.cpp +++ b/Swiften/Roster/Roster.cpp @@ -20,9 +20,9 @@ Roster::Roster(TreeWidget *treeWidget, TreeWidgetFactory *widgetFactory) : treeW } Roster::~Roster() { - foreach (RosterItem* item, items_) { - delete item; - } + foreach (RosterItem* item, items_) { + delete item; + } delete treeWidget_; } |