Frontend:
authorsmxx
Mon, 01 Mar 2010 15:03:13 +0000
changeset 2901 6d2636144e1f
parent 2900 bfe1f4340fd3
child 2902 1566f05ca371
Frontend: * Reverted to old "theme finding" for now
QTfrontend/main.cpp
--- 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("*")));