--- a/QTfrontend/hwform.cpp Mon Mar 16 20:55:10 2009 +0000
+++ b/QTfrontend/hwform.cpp Wed Mar 18 15:48:43 2009 +0000
@@ -832,9 +832,25 @@
void HWForm::NetGameSlave()
{
+ if (hwnet)
+ {
+ NetAmmoSchemeModel * netAmmo = new NetAmmoSchemeModel(hwnet);
+ connect(hwnet, SIGNAL(netSchemeConfig(QStringList &)), netAmmo, SLOT(setNetSchemeConfig(QStringList &)));
+ ui.pageNetGame->pGameCFG->GameSchemes->setModel(netAmmo);
+
+ ui.pageNetGame->pGameCFG->GameSchemes->view()->disconnect(hwnet);
+ connect(hwnet, SIGNAL(netSchemeConfig(QStringList &)),
+ this, SLOT(selectFirstNetScheme()));
+ }
+
ui.pageNetGame->setMasterMode(false);
}
+void HWForm::selectFirstNetScheme()
+{
+ ui.pageNetGame->pGameCFG->GameSchemes->setCurrentIndex(0);
+}
+
void HWForm::NetLeftRoom()
{
if (ui.Pages->currentIndex() == ID_PAGE_NETGAME)