QTfrontend/hwform.cpp
changeset 1600 305e13c5f327
parent 1598 c853e02ed663
child 1621 d1ded2532d3f
--- a/QTfrontend/hwform.cpp	Thu Jan 08 15:32:26 2009 +0000
+++ b/QTfrontend/hwform.cpp	Thu Jan 08 15:34:51 2009 +0000
@@ -443,6 +443,7 @@
 	connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame()));
 	connect(hwnet, SIGNAL(Connected()), this, SLOT(NetConnected()));
 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
+	connect(hwnet, SIGNAL(LeftRoom()), this, SLOT(NetLeftRoom()));
 	connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)));
 	connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), hwnet, SLOT(partRoom()));
 
@@ -807,3 +808,11 @@
 {
 	ui.pageNetGame->BtnMaster->setVisible(false);
 }
+
+void HWForm::NetLeftRoom()
+{
+	if (ui.Pages->currentIndex() == ID_PAGE_NETGAME)
+		GoBack();
+	else
+		qWarning("Left room while not in room");
+}