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
  • TabularUnified smplayer/vendor/current/src/smplayer.cpp

    r163 r168  
    2828#include "cleanconfig.h"
    2929#include "myapplication.h"
     30#include "images.h"
    3031
    3132#ifdef MPCGUI
     
    120121                        qDebug("SMPlayer::gui: user_theme_dir: %s", user_theme_dir.toUtf8().constData());
    121122                        qDebug("SMPlayer::gui: theme_dir: %s", theme_dir.toUtf8().constData());
     123                        #ifdef USE_RESOURCES
     124                        QString user_theme_resource = user_theme_dir +"/"+ theme +".rcc";
     125                        QString theme_resource = theme_dir +"/"+ theme +".rcc";
     126                        qDebug("SMPlayer::gui: user_theme_resource: %s", user_theme_resource.toUtf8().constData());
     127                        qDebug("SMPlayer::gui: theme_resource: %s", theme_resource.toUtf8().constData());
     128                        if ((QFile::exists(user_theme_resource)) || (QFile::exists(theme_resource))) {
     129                        #else
    122130                        if ((QDir(theme_dir).exists()) || (QDir(user_theme_dir).exists())) {
     131                        #endif
    123132                                if (pref->iconset.isEmpty()) pref->iconset = theme;
    124133                        } else {
     134                                #ifdef USE_RESOURCES
     135                                qDebug("SMPlayer::gui: skin resource file doesn't exist. Falling back to default gui.");
     136                                #else
    125137                                qDebug("SMPlayer::gui: skin folder doesn't exist. Falling back to default gui.");
     138                                #endif
    126139                                gui_to_use = "DefaultGUI";
    127140                                pref->iconset = "";
Note: See TracChangeset for help on using the changeset viewer.