QTfrontend/game.cpp
branchwebgl
changeset 9197 e4e366013e9a
parent 9127 e350500c4edb
parent 9124 955a90b88865
child 9521 8054d9d775fd
--- a/QTfrontend/game.cpp	Sun Jun 16 00:46:11 2013 +0400
+++ b/QTfrontend/game.cpp	Mon Jun 17 16:56:58 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");