# HG changeset patch
# User unc0rr
# Date 1235414476 0
# Node ID ba91a89f449a3897f83b4eced79c7ef0f24b874a
# Parent  3bb5e22b7f9af6247a9b2f363644b62429706b5e
Fix bug with not working toggles 'rectrict joins' and 'restrict team adding'

diff -r 3bb5e22b7f9a -r ba91a89f449a QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Mon Feb 23 18:35:32 2009 +0000
+++ b/QTfrontend/hwform.cpp	Mon Feb 23 18:41:16 2009 +0000
@@ -792,6 +792,10 @@
 	
 	if (hwnet)
 	{
+		// disconnect connections first to ensure their inexistance and not to connect twice
+		ui.pageNetGame->startGame->disconnect(hwnet);
+		ui.pageNetGame->restrictJoins->disconnect(hwnet);
+		ui.pageNetGame->restrictTeamAdds->disconnect(hwnet);
 		connect(ui.pageNetGame->startGame, SIGNAL(triggered()), hwnet, SLOT(startGame()));
 		connect(ui.pageNetGame->restrictJoins, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictJoins()));
 		connect(ui.pageNetGame->restrictTeamAdds, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictTeamAdds()));