QTfrontend/game.cpp
branch0.9.19
changeset 9124 955a90b88865
parent 9080 9b42757d7e71
child 9197 e4e366013e9a
child 9249 7b8c82785145
--- a/QTfrontend/game.cpp	Tue Jun 04 21:59:01 2013 +0200
+++ b/QTfrontend/game.cpp	Fri Jun 07 16:35:48 2013 +0200
@@ -153,7 +153,7 @@
 
     HWProto::addStringToBuffer(teamscfg, "TL");
     HWProto::addStringToBuffer(teamscfg, QString("etheme %1")
-                               .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data().toString() : "steel"));
+                               .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data(ThemeModel::ActualNameRole).toString() : "steel"));
     HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString());
 
     HWProto::addStringToBuffer(teamscfg, "e$template_filter 2");