Fixed crash and endles loop with refill in forums

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2892 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-05-12 22:23:05 +00:00
parent b242b73f31
commit 946d09cb72

View File

@ -871,7 +871,7 @@ void ForumsDialog::insertThreads()
void ForumsDialog::FillThreads(QList<QTreeWidgetItem *> &ThreadList) void ForumsDialog::FillThreads(QList<QTreeWidgetItem *> &ThreadList)
{ {
int Index; int Index = 0;
QTreeWidgetItem *Thread; QTreeWidgetItem *Thread;
// iterate all new threads // iterate all new threads
@ -926,7 +926,7 @@ void ForumsDialog::FillThreads(QList<QTreeWidgetItem *> &ThreadList)
void ForumsDialog::FillChildren(QTreeWidgetItem *Parent, QTreeWidgetItem *NewParent) void ForumsDialog::FillChildren(QTreeWidgetItem *Parent, QTreeWidgetItem *NewParent)
{ {
int Index; int Index = 0;
int NewIndex; int NewIndex;
int NewCount = NewParent->childCount(); int NewCount = NewParent->childCount();