Fix team lists reset when editing weapon sets
authorunc0rr
Mon, 20 Apr 2009 15:36:36 +0000
changeset 2010 bac82fb13a42
parent 2009 91f461c218ab
child 2011 40a168fb6f1b
Fix team lists reset when editing weapon sets
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Sun Apr 19 15:44:47 2009 +0000
+++ b/QTfrontend/hwform.cpp	Mon Apr 20 15:36:36 2009 +0000
@@ -345,7 +345,10 @@
 		  if (editedTeam) {
 		    curTeamSelWidget->addTeam(*editedTeam);
 		  }
-		} else if(lastid != ID_PAGE_GAMESTATS && lastid != ID_PAGE_INGAME && lastid != ID_PAGE_SCHEME) {
+		} else if(lastid != ID_PAGE_GAMESTATS
+				&& lastid != ID_PAGE_INGAME
+				&& lastid != ID_PAGE_SCHEME
+				&& lastid != ID_PAGE_SELECTWEAPON) {
 			curTeamSelWidget->resetPlayingTeams(teamsList);
 		}
 	} else