Changeset 168 for smplayer/vendor/current/src/prefinterface.cpp
- Timestamp:
- Oct 9, 2014, 11:54:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/prefinterface.cpp
r163 r168 60 60 QStringList iconsets = icon_dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot); 61 61 for (int n=0; n < iconsets.count(); n++) { 62 QString theme_dir = Paths::configPath() + "/themes/" + iconsets[n]; 63 #ifdef USE_RESOURCES 64 if (!QFile::exists(theme_dir + "/" + iconsets[n] + ".rcc")) continue; 65 #endif 66 62 67 #ifdef SKINS 63 QString css_file = Paths::configPath() + "/themes/" + iconsets[n]+ "/main.css";68 QString css_file = theme_dir + "/main.css"; 64 69 bool is_skin = QFile::exists(css_file); 65 70 //qDebug("***** %s %d", css_file.toUtf8().constData(), is_skin); … … 77 82 iconsets = icon_dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot); 78 83 for (int n=0; n < iconsets.count(); n++) { 84 QString theme_dir = Paths::themesPath() + "/" + iconsets[n]; 85 #ifdef USE_RESOURCES 86 if (!QFile::exists(theme_dir + "/" + iconsets[n] + ".rcc")) continue; 87 #endif 88 79 89 #ifdef SKINS 80 QString css_file = Paths::themesPath() + "/" + iconsets[n]+ "/main.css";90 QString css_file = theme_dir + "/main.css"; 81 91 bool is_skin = QFile::exists(css_file); 82 92 //qDebug("***** %s %d", css_file.toUtf8().constData(), is_skin); 83 if ((is_skin) && ( iconset_combo->findText( iconsets[n] ) == -1)) {93 if ((is_skin) && (skin_combo->findText( iconsets[n] ) == -1)) { 84 94 skin_combo->addItem( iconsets[n] ); 85 95 n_skins++;
Note:
See TracChangeset
for help on using the changeset viewer.