QTfrontend/hwform.cpp
changeset 1410 eece43296890
parent 1409 d1cbe4a57ebf
child 1411 df78c9571bc7
equal deleted inserted replaced
1409:d1cbe4a57ebf 1410:eece43296890
   735 void HWForm::NetGameMaster()
   735 void HWForm::NetGameMaster()
   736 {
   736 {
   737 	ui.pageNetGame->BtnMaster->setVisible(true);
   737 	ui.pageNetGame->BtnMaster->setVisible(true);
   738 	ui.pageNetGame->restrictJoins->setChecked(false);
   738 	ui.pageNetGame->restrictJoins->setChecked(false);
   739 	ui.pageNetGame->restrictTeamAdds->setChecked(false);
   739 	ui.pageNetGame->restrictTeamAdds->setChecked(false);
       
   740 	
       
   741 	if (hwnet)
       
   742 	{
       
   743 		connect(ui.pageNetGame->startGame, SIGNAL(triggered(bool)), hwnet, SLOT(startGame()));
       
   744 		connect(ui.pageNetGame->restrictJoins, SIGNAL(triggered(bool)), hwnet, SLOT(toggleRestrictJoins()));
       
   745 		connect(ui.pageNetGame->restrictTeamAdds, SIGNAL(triggered(bool)), hwnet, SLOT(toggleRestrictTeamAdds()));
       
   746 	}
   740 }
   747 }
   741 
   748 
   742 void HWForm::NetGameSlave()
   749 void HWForm::NetGameSlave()
   743 {
   750 {
   744 	ui.pageNetGame->BtnMaster->setVisible(false);
   751 	ui.pageNetGame->BtnMaster->setVisible(false);