QTfrontend/pages.cpp
changeset 667 194dc62d1519
parent 665 5c7bfc8bac6a
child 668 0d7683a66d61
equal deleted inserted replaced
666:07fa9a74a074 667:194dc62d1519
   483 	connect(rbLocalGame, SIGNAL(toggled(bool)), this, SLOT(updateServersList()));
   483 	connect(rbLocalGame, SIGNAL(toggled(bool)), this, SLOT(updateServersList()));
   484 }
   484 }
   485 
   485 
   486 void PageNet::updateServersList()
   486 void PageNet::updateServersList()
   487 {
   487 {
   488 //	if (tvServersList->model()) delete tvServersList->model();
       
   489 
       
   490 	if (rbLocalGame->isChecked())
   488 	if (rbLocalGame->isChecked())
   491 //;		netServersWidget = new HWNetUdpWidget(ConnGroupBox);
   489 		tvServersList->setModel(new HWNetUdpModel());
   492 //	else
   490 	else
   493 		tvServersList->setModel(new HWNetWwwModel());
   491 		tvServersList->setModel(new HWNetWwwModel());
   494 
   492 
   495 	static_cast<HWNetServersModel *>(tvServersList->model())->updateList();
   493 	static_cast<HWNetServersModel *>(tvServersList->model())->updateList();
   496 
   494 
   497 	connect(BtnUpdateSList, SIGNAL(clicked()), static_cast<HWNetServersModel *>(tvServersList->model()), SLOT(updateList()));
   495 	connect(BtnUpdateSList, SIGNAL(clicked()), static_cast<HWNetServersModel *>(tvServersList->model()), SLOT(updateList()));