Ignore:
Timestamp:
Feb 21, 2014, 4:44:11 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update vendor to 0.8.6

File:
1 edited

Legend:

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

    r140 r154  
    2727#include "config.h"
    2828#include "clhelp.h"
     29#include "cleanconfig.h"
    2930#include "myapplication.h"
    3031
     
    104105                        QString theme = pref->iconset;
    105106                        if (theme.isEmpty()) theme = "Gonzo";
     107                        QString user_theme_dir = Paths::configPath() + "/themes/" + theme;
    106108                        QString theme_dir = Paths::themesPath() + "/" + theme;
     109                        qDebug("SMPlayer::gui: user_theme_dir: %s", user_theme_dir.toUtf8().constData());
    107110                        qDebug("SMPlayer::gui: theme_dir: %s", theme_dir.toUtf8().constData());
    108                         if (QDir(theme_dir).exists()) {
     111                        if ((QDir(theme_dir).exists()) || (QDir(user_theme_dir).exists())) {
    109112                                if (pref->iconset.isEmpty()) pref->iconset = theme;
    110113                        } else {
     
    205208
    206209#ifdef Q_OS_WIN
    207         if (args.contains("-uninstall")){
    208 #if USE_ASSOCIATIONS
     210        if (args.contains("-uninstall")) {
     211                #if USE_ASSOCIATIONS
    209212                //Called by uninstaller. Will restore old associations.
    210213                WinFileAssoc RegAssoc;
     
    214217                RegAssoc.RestoreFileAssociations(regExts);
    215218                printf("Restored associations\n");
    216 #endif
    217                 return NoError;
    218         }
    219 #endif
     219                #endif
     220                return NoError;
     221        }
     222#endif
     223
     224        if (args.contains("-delete-config")) {
     225                CleanConfig::clean(Paths::configPath());
     226                return NoError;
     227        }
    220228
    221229        for (int n = 1; n < args.count(); n++) {
     
    393401#ifdef FONTCACHE_DIALOG
    394402#ifndef PORTABLE_APP
    395         if (smplayerVersion() != pref->smplayer_version) {
     403        if (Version::with_revision() != pref->smplayer_version) {
    396404                FontCacheDialog d(0);
    397405                d.run(pref->mplayer_bin, "sample.avi");
    398                 pref->smplayer_version = smplayerVersion();
     406                pref->smplayer_version = Version::with_revision();
    399407        }
    400408#endif
     
    454462#endif
    455463        QString s = QObject::tr("This is SMPlayer v. %1 running on %2")
    456             .arg(smplayerVersion())
     464            .arg(Version::printable())
    457465#ifdef Q_OS_LINUX
    458466           .arg("Linux")
Note: See TracChangeset for help on using the changeset viewer.