--- 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("*")));