QTfrontend/pages.cpp
changeset 97 e7c1df9cce2c
parent 94 c6eec0bdb630
child 111 30ca06092a64
--- a/QTfrontend/pages.cpp	Sun Aug 06 15:47:20 2006 +0000
+++ b/QTfrontend/pages.cpp	Sun Aug 06 15:48:48 2006 +0000
@@ -221,7 +221,7 @@
 
 
 	QDir tmpdir;
-	tmpdir.cd(DATA_PATH);
+	tmpdir.cd(datadir->absolutePath());
 	tmpdir.cd("Forts");
 	tmpdir.setFilter(QDir::Files);
 
@@ -239,13 +239,13 @@
 
 void PageEditTeam::CBGrave_activated(const QString & gravename)
 {
-	QPixmap pix(QString(DATA_PATH) + "/Graphics/Graves/" + gravename + ".png");
+	QPixmap pix(datadir->absolutePath() + "/Graphics/Graves/" + gravename + ".png");
 	GravePreview->setPixmap(pix.copy(0, 0, 32, 32));
 }
 
 void PageEditTeam::CBFort_activated(const QString & fortname)
 {
-	QPixmap pix(QString(DATA_PATH) + "/Forts/" + fortname + "L.png");
+	QPixmap pix(datadir->absolutePath() + "/Forts/" + fortname + "L.png");
 	FortPreview->setPixmap(pix);
 }