Ignore:
Timestamp:
Oct 9, 2014, 11:54:00 AM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update vendor to 14.9.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/prefinterface.cpp

    r163 r168  
    6060        QStringList iconsets = icon_dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
    6161        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
    6267                #ifdef SKINS
    63                 QString css_file = Paths::configPath() + "/themes/" + iconsets[n] + "/main.css";
     68                QString css_file = theme_dir + "/main.css";
    6469                bool is_skin = QFile::exists(css_file);
    6570                //qDebug("***** %s %d", css_file.toUtf8().constData(), is_skin);
     
    7782        iconsets = icon_dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
    7883        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
    7989                #ifdef SKINS
    80                 QString css_file = Paths::themesPath() + "/" + iconsets[n] + "/main.css";
     90                QString css_file = theme_dir + "/main.css";
    8191                bool is_skin = QFile::exists(css_file);
    8292                //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)) {
    8494                        skin_combo->addItem( iconsets[n] );
    8595                        n_skins++;
Note: See TracChangeset for help on using the changeset viewer.