QTfrontend/netwwwwidget.cpp
changeset 638 e1cc516488f2
parent 635 0fb6d55ecd66
child 645 c71fe8b942ee
--- a/QTfrontend/netwwwwidget.cpp	Sun Dec 09 14:12:01 2007 +0000
+++ b/QTfrontend/netwwwwidget.cpp	Sun Dec 09 17:16:15 2007 +0000
@@ -18,7 +18,7 @@
 
 #include <QHttp>
 #include <QListWidget>
-#include <QMessageBox>
+#include <QDebug>
 
 #include "netwwwwidget.h"
 #include "hwconsts.h"
@@ -33,8 +33,6 @@
 
 void HWNetWwwWidget::updateList()
 {
-	http->abort();
-
 	QString request = QString("protocol_version=%1")
 			.arg(*cProtoVer);
 	http->post("/games/list_games", request.toUtf8());
@@ -46,8 +44,9 @@
 {
 	if (error)
 	{
-		QMessageBox::critical(this, tr("Error"), http->errorString());
+		qDebug() << "Error" << http->errorString();
 		return;
 	}
+	serversList->clear();
 	serversList->addItem(http->readAll());
 }