QTfrontend/model/ThemeModel.cpp
branchphysfslayer
changeset 8049 133e22b5c410
parent 7955 85b3970b402a
child 8377 869f80966a77
--- a/QTfrontend/model/ThemeModel.cpp	Sat Nov 17 22:07:17 2012 +0400
+++ b/QTfrontend/model/ThemeModel.cpp	Sat Nov 17 22:45:30 2012 +0400
@@ -66,8 +66,7 @@
     foreach (QString theme, themes)
     {
         // themes without icon are supposed to be hidden
-        QString iconpath =
-            datamgr.findFileForRead(QString("Themes/%1/icon.png").arg(theme));
+        QString iconpath = QString("physfs://Themes/%1/icon.png").arg(theme);
 
         if (!QFile::exists(iconpath))
             continue;
@@ -83,7 +82,7 @@
         dataset.insert(Qt::DecorationRole, icon);
 
         // load and set preview icon
-        QIcon preview(datamgr.findFileForRead(QString("Themes/%1/icon@2x.png").arg(theme)));
+        QIcon preview(QString("physfs://Themes/%1/icon@2x.png").arg(theme));
         dataset.insert(Qt::UserRole, preview);
 
         m_data.append(dataset);