QTfrontend/pages.cpp
changeset 638 e1cc516488f2
parent 636 dc93ac775bb9
child 646 ed610c2cd0a4
--- a/QTfrontend/pages.cpp	Sun Dec 09 14:12:01 2007 +0000
+++ b/QTfrontend/pages.cpp	Sun Dec 09 17:16:15 2007 +0000
@@ -493,13 +493,18 @@
 	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();
+	}
 	GBClayout->addWidget(netServersWidget, 1, 0, 2, 2);
 
 	connect(BtnUpdateSList, SIGNAL(clicked()), netServersWidget, SLOT(updateList()));
-	netServersWidget->updateList();
 }
 
 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)