QTfrontend/main.cpp.in
changeset 490 4cddbd75a79b
parent 486 7ea71cd3acd5
child 533 eebb7684ac22
--- a/QTfrontend/main.cpp.in	Fri Feb 23 17:34:30 2007 +0000
+++ b/QTfrontend/main.cpp.in	Fri Feb 23 19:55:53 2007 +0000
@@ -69,7 +69,8 @@
 	}
 	cfgdir->cd(".hedgewars");
 
-	datadir = new QDir("${HEDGEWARS_DATADIR}");
+	datadir = new QDir(mydir);
+	datadir->cd("${HEDGEWARS_DATADIR}");
 	if(!datadir->cd("hedgewars/Data")) {
 		QMessageBox::critical(0, QMessageBox::tr("Error"), 
 			QMessageBox::tr("Failed to open data directory:\n%1\n"