QTfrontend/game.cpp
changeset 6937 7f77fa908a4e
parent 6700 e04da46ee43c
child 6952 7f70f37bbf08
--- a/QTfrontend/game.cpp	Fri Apr 27 16:57:54 2012 -0400
+++ b/QTfrontend/game.cpp	Thu Apr 26 16:15:37 2012 +0200
@@ -115,10 +115,11 @@
 void HWGame::SendQuickConfig()
 {
     QByteArray teamscfg;
+    ThemeModel * themeModel = DataManager::instance().themeModel();
 
     HWProto::addStringToBuffer(teamscfg, "TL");
     HWProto::addStringToBuffer(teamscfg, QString("etheme %1")
-                               .arg((themesModel->rowCount() > 0) ? themesModel->index(rand() % themesModel->rowCount()).data().toString() : "steel"));
+                               .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data().toString() : "steel"));
     HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString());
 
     HWTeam team1;