QTfrontend/main.cpp
changeset 1210 bfed1b89bc85
parent 1209 7f6cb1d7be2a
child 1211 94c4f20abdda
--- a/QTfrontend/main.cpp	Thu Aug 14 13:34:44 2008 +0000
+++ b/QTfrontend/main.cpp	Thu Aug 14 14:04:45 2008 +0000
@@ -261,6 +261,12 @@
 		QMessageBox::critical(0, "Error", "Cannot access themes.cfg", "OK");
 	}
 
+	QDir tmpdir;
+	tmpdir.cd(datadir->absolutePath());
+	tmpdir.cd("Maps");
+	tmpdir.setFilter(QDir::Dirs | QDir::NoDotAndDotDot);
+	mapList = new QStringList(tmpdir.entryList(QStringList("*")));
+
 	HWForm *Form = new HWForm();
 	Form->show();
 	return app.exec();