diff options
Diffstat (limited to 'Swift/QtUI/Roster/QtTreeWidgetFactory.h')
-rw-r--r-- | Swift/QtUI/Roster/QtTreeWidgetFactory.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Swift/QtUI/Roster/QtTreeWidgetFactory.h b/Swift/QtUI/Roster/QtTreeWidgetFactory.h index 353f697..2ca1e21 100644 --- a/Swift/QtUI/Roster/QtTreeWidgetFactory.h +++ b/Swift/QtUI/Roster/QtTreeWidgetFactory.h @@ -27,8 +27,9 @@ class QtTreeWidgetFactory : public TreeWidgetFactory { } TreeWidgetItem* createTreeWidgetItem(TreeWidget* item) { - QtTreeWidget* qtItem = dynamic_cast<QtTreeWidget*>(item); - assert(qtItem); + QtTreeWidget* treeItem = dynamic_cast<QtTreeWidget*>(item); + assert(treeItem); + QtTreeWidgetItem* qtItem = treeItem->getRoot(); QtTreeWidgetItem* newItem = new QtTreeWidgetItem(qtItem); //qtItem->setItemWidget(newItem, 0, newItem->getCollapsedRosterWidget()); qtItem->addChild(newItem); |