QTfrontend/ui/widget/teamselhelper.cpp
changeset 7258 722e8a0d89dc
parent 7145 1d1a14b39400
child 8382 67e257b98422
--- a/QTfrontend/ui/widget/teamselhelper.cpp	Sun Jun 17 16:32:44 2012 +0200
+++ b/QTfrontend/ui/widget/teamselhelper.cpp	Sun Jun 17 21:45:49 2012 +0400
@@ -28,6 +28,7 @@
 #include "hwconsts.h"
 #include "frameTeam.h"
 #include "colorwidget.h"
+#include "DataManager.h"
 
 void TeamLabel::teamButtonClicked()
 {
@@ -69,7 +70,7 @@
     if(m_isPlaying)
     {
         // team color
-        colorWidget = new ColorWidget(colorsModel, this);
+        colorWidget = new ColorWidget(DataManager::instance().colorsModel(), this);
         colorWidget->setMinimumWidth(26);
         colorWidget->setMaximumWidth(26);
         colorWidget->setMinimumHeight(26);