From 946d09cb727cea85c6bc118940bdf46791d1bbdc Mon Sep 17 00:00:00 2001 From: thunder2 Date: Wed, 12 May 2010 22:23:05 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/ForumsDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/ForumsDialog.cpp b/retroshare-gui/src/gui/ForumsDialog.cpp index f1117b96f..3cee62c22 100644 --- a/retroshare-gui/src/gui/ForumsDialog.cpp +++ b/retroshare-gui/src/gui/ForumsDialog.cpp @@ -871,7 +871,7 @@ void ForumsDialog::insertThreads() void ForumsDialog::FillThreads(QList &ThreadList) { - int Index; + int Index = 0; QTreeWidgetItem *Thread; // iterate all new threads @@ -926,7 +926,7 @@ void ForumsDialog::FillThreads(QList &ThreadList) void ForumsDialog::FillChildren(QTreeWidgetItem *Parent, QTreeWidgetItem *NewParent) { - int Index; + int Index = 0; int NewIndex; int NewCount = NewParent->childCount();