QTfrontend/model/ThemeModel.cpp
changeset 13249 d2b58cf339fe
parent 13248 b0022324fb4e
child 13252 5200231eb120
equal deleted inserted replaced
13248:b0022324fb4e 13249:d2b58cf339fe
   129 
   129 
   130         if (!QFile::exists(iconpath))
   130         if (!QFile::exists(iconpath))
   131             dataset.insert(IsHiddenRole, true);
   131             dataset.insert(IsHiddenRole, true);
   132 
   132 
   133         // detect if theme is dlc
   133         // detect if theme is dlc
   134         QString themeDir = PHYSFS_getRealDir(QString("Themes/%1/icon.png").arg(theme).toLocal8Bit().data());
   134         QString themeDir = PHYSFS_getRealDir(QString("Themes/%1").arg(theme).toLocal8Bit().data());
   135         bool isDLC = !themeDir.startsWith(datadir->absolutePath());
   135         bool isDLC = !themeDir.startsWith(datadir->absolutePath());
   136         dataset.insert(IsDlcRole, isDLC);
   136         dataset.insert(IsDlcRole, isDLC);
   137 
   137 
   138         // set icon path
   138         // set icon path
   139         dataset.insert(IconPathRole, iconpath);
   139         dataset.insert(IconPathRole, iconpath);