QTfrontend/main.cpp
changeset 2901 6d2636144e1f
parent 2898 c53636f556f8
child 2913 865ae941d59e
--- a/QTfrontend/main.cpp	Mon Mar 01 14:47:09 2010 +0000
+++ b/QTfrontend/main.cpp	Mon Mar 01 15:03:13 2010 +0000
@@ -333,7 +333,7 @@
 		return 1;
 	}
 
-	/*Themes = new QStringList();
+	Themes = new QStringList();
 	QFile themesfile(datadir->absolutePath() + "/Themes/themes.cfg");
 	if (themesfile.open(QIODevice::ReadOnly)) {
 		QTextStream stream(&themesfile);
@@ -345,15 +345,10 @@
 		themesfile.close();
 	} else {
 		QMessageBox::critical(0, "Error", "Cannot access themes.cfg", "OK");
-	}*/
+	}
 
 	QDir tmpdir;
 	tmpdir.cd(datadir->absolutePath());
-	tmpdir.cd("Themes");
-	tmpdir.setFilter(QDir::Dirs | QDir::NoDotAndDotDot);
-	Themes = new QStringList(tmpdir.entryList(QStringList("*")));
-
-	tmpdir.cd(datadir->absolutePath());
 	tmpdir.cd("Maps");
 	tmpdir.setFilter(QDir::Dirs | QDir::NoDotAndDotDot);
 	mapList = new QStringList(tmpdir.entryList(QStringList("*")));