[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r1301: Don't remove the streams when returning a list of them. (trunk/src/gui/network)



Author: edmanm
Date: 2006-10-06 01:24:28 -0400 (Fri, 06 Oct 2006)
New Revision: 1301

Modified:
   trunk/src/gui/network/circuititem.cpp
Log:
Don't remove the streams when returning a list of them.


Modified: trunk/src/gui/network/circuititem.cpp
===================================================================
--- trunk/src/gui/network/circuititem.cpp	2006-10-06 05:03:24 UTC (rev 1300)
+++ trunk/src/gui/network/circuititem.cpp	2006-10-06 05:24:28 UTC (rev 1301)
@@ -76,9 +76,9 @@
 CircuitItem::streams()
 {
   QList<StreamItem *> streams;
-  QList<QTreeWidgetItem *> items = this->takeChildren();
-  foreach (QTreeWidgetItem *item, items) {
-    streams << (StreamItem *)item;
+  int n = childCount();
+  for (int i = 0; i < n; i++) {
+    streams << (StreamItem *)child(i);
   }
   return streams;
 }