equal
deleted
inserted
replaced
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); |