equal
deleted
inserted
replaced
830 } |
830 } |
831 } |
831 } |
832 |
832 |
833 void HWForm::NetGameSlave() |
833 void HWForm::NetGameSlave() |
834 { |
834 { |
|
835 if (hwnet) |
|
836 { |
|
837 NetAmmoSchemeModel * netAmmo = new NetAmmoSchemeModel(hwnet); |
|
838 connect(hwnet, SIGNAL(netSchemeConfig(QStringList &)), netAmmo, SLOT(setNetSchemeConfig(QStringList &))); |
|
839 ui.pageNetGame->pGameCFG->GameSchemes->setModel(netAmmo); |
|
840 |
|
841 ui.pageNetGame->pGameCFG->GameSchemes->view()->disconnect(hwnet); |
|
842 connect(hwnet, SIGNAL(netSchemeConfig(QStringList &)), |
|
843 this, SLOT(selectFirstNetScheme())); |
|
844 } |
|
845 |
835 ui.pageNetGame->setMasterMode(false); |
846 ui.pageNetGame->setMasterMode(false); |
|
847 } |
|
848 |
|
849 void HWForm::selectFirstNetScheme() |
|
850 { |
|
851 ui.pageNetGame->pGameCFG->GameSchemes->setCurrentIndex(0); |
836 } |
852 } |
837 |
853 |
838 void HWForm::NetLeftRoom() |
854 void HWForm::NetLeftRoom() |
839 { |
855 { |
840 if (ui.Pages->currentIndex() == ID_PAGE_NETGAME) |
856 if (ui.Pages->currentIndex() == ID_PAGE_NETGAME) |