equal
deleted
inserted
replaced
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())); |