escape ampersand ('&') in team select buttons.
authorsheepluva
Wed, 20 Jul 2011 00:09:13 +0200
changeset 5423 48b7823ec7e4
parent 5420 a09227b6c05b
child 5426 109e9b5761c2
child 5427 3817b7e6c871
escape ampersand ('&') in team select buttons.
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);