--- 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);