QTfrontend/teamselhelper.cpp
changeset 123 6987769ced3d
parent 120 87264c35b09a
child 132 2d0f404cdf05
--- a/QTfrontend/teamselhelper.cpp	Sun Aug 20 17:34:22 2006 +0000
+++ b/QTfrontend/teamselhelper.cpp	Sun Aug 20 19:22:12 2006 +0000
@@ -2,6 +2,7 @@
 
 #include <QPixmap>
 #include <QPushButton>
+#include "hwconsts.h"
 
 void TeamLabel::teamButtonClicked()
 {
@@ -12,7 +13,7 @@
   QWidget(parent), mainLayout(this), m_team(team)
 {
   this->setMaximumHeight(40);
-  QPixmap* px=new QPixmap(QPixmap(QString("../share/hedgewars/Data/Forts/")+m_team.Fort+"L.png").scaled(40, 40));
+  QPixmap* px=new QPixmap(QPixmap(datadir->absolutePath() + "/Forts/" + m_team.Fort + "L.png").scaled(40, 40));
 
   QPushButton* butt=new QPushButton(*px, "", this);
   butt->setFlat(true);