QTfrontend/hwform.cpp
changeset 1592 5ee77ee470a6
parent 1587 b8a3d449bed7
child 1593 3fdc92540cc8
--- a/QTfrontend/hwform.cpp	Tue Jan 06 17:51:39 2009 +0000
+++ b/QTfrontend/hwform.cpp	Tue Jan 06 19:47:19 2009 +0000
@@ -315,7 +315,7 @@
 	ui.Pages->setCurrentIndex(id);
 	OnPageShown(id, curid);
 	
-	if (id == ID_PAGE_ROOMSLIST || id == ID_PAGE_NETSERVER) {
+	if (id == ID_PAGE_NETSERVER) {
 		GoBack();
 	}
 	if (id == ID_PAGE_NET) {
@@ -445,6 +445,7 @@
 	connect(hwnet, SIGNAL(Connected()), this, SLOT(NetConnected()));
 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
 	connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)));
+	connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), hwnet, SLOT(partRoom()));
 
 	connect(hwnet, SIGNAL(roomsList(const QStringList&)),
 		ui.pageRoomsList, SLOT(setRoomsList(const QStringList&)));