# HG changeset patch
# User sheepluva
# Date 1311113353 -7200
# Node ID 48b7823ec7e485bba8181b448122535021f05844
# Parent  a09227b6c05bc7e87656502957e791a7bf7d7b74
escape ampersand ('&') in team select buttons.

diff -r a09227b6c05b -r 48b7823ec7e4 QTfrontend/teamselhelper.cpp
--- a/QTfrontend/teamselhelper.cpp	Tue Jul 19 12:02:24 2011 +0200
+++ b/QTfrontend/teamselhelper.cpp	Wed Jul 20 00:09:13 2011 +0200
@@ -49,7 +49,7 @@
         QIcon(QString(":/res/botlevels/net%1.png").arg(m_team.difficulty))
         : QIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
 
-    butt = new QPushButton(difficultyIcon, team.TeamName, this);
+    butt = new QPushButton(difficultyIcon, team.TeamName.replace("&","&&"), this);
     butt->setFlat(true);
     butt->setToolTip(team.Owner);
     mainLayout.addWidget(butt);