QTfrontend/pages.cpp
changeset 659 5eafb20566f1
parent 657 b34fc518a48a
child 665 5c7bfc8bac6a
--- a/QTfrontend/pages.cpp	Fri Dec 14 15:02:46 2007 +0000
+++ b/QTfrontend/pages.cpp	Fri Dec 14 15:36:00 2007 +0000
@@ -486,15 +486,11 @@
 	if (netServersWidget) delete netServersWidget;
 
 	if (rbLocalGame->isChecked())
-	{
 		netServersWidget = new HWNetUdpWidget(ConnGroupBox);
-		static_cast<HWNetUdpWidget *>(netServersWidget)->updateList();
-	}
 	else
-	{
 		netServersWidget = new HWNetWwwWidget(ConnGroupBox);
-		static_cast<HWNetWwwWidget *>(netServersWidget)->updateList();
-	}
+
+	netServersWidget->updateList();
 	GBClayout->addWidget(netServersWidget, 1, 0, 1, 3);
 
 	connect(BtnUpdateSList, SIGNAL(clicked()), netServersWidget, SLOT(updateList()));