Changeset 154 for smplayer/vendor/current/src/smplayer.cpp
- Timestamp:
- Feb 21, 2014, 4:44:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/smplayer.cpp
r140 r154 27 27 #include "config.h" 28 28 #include "clhelp.h" 29 #include "cleanconfig.h" 29 30 #include "myapplication.h" 30 31 … … 104 105 QString theme = pref->iconset; 105 106 if (theme.isEmpty()) theme = "Gonzo"; 107 QString user_theme_dir = Paths::configPath() + "/themes/" + theme; 106 108 QString theme_dir = Paths::themesPath() + "/" + theme; 109 qDebug("SMPlayer::gui: user_theme_dir: %s", user_theme_dir.toUtf8().constData()); 107 110 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())) { 109 112 if (pref->iconset.isEmpty()) pref->iconset = theme; 110 113 } else { … … 205 208 206 209 #ifdef Q_OS_WIN 207 if (args.contains("-uninstall")) {208 #if USE_ASSOCIATIONS210 if (args.contains("-uninstall")) { 211 #if USE_ASSOCIATIONS 209 212 //Called by uninstaller. Will restore old associations. 210 213 WinFileAssoc RegAssoc; … … 214 217 RegAssoc.RestoreFileAssociations(regExts); 215 218 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 } 220 228 221 229 for (int n = 1; n < args.count(); n++) { … … 393 401 #ifdef FONTCACHE_DIALOG 394 402 #ifndef PORTABLE_APP 395 if ( smplayerVersion() != pref->smplayer_version) {403 if (Version::with_revision() != pref->smplayer_version) { 396 404 FontCacheDialog d(0); 397 405 d.run(pref->mplayer_bin, "sample.avi"); 398 pref->smplayer_version = smplayerVersion();406 pref->smplayer_version = Version::with_revision(); 399 407 } 400 408 #endif … … 454 462 #endif 455 463 QString s = QObject::tr("This is SMPlayer v. %1 running on %2") 456 .arg( smplayerVersion())464 .arg(Version::printable()) 457 465 #ifdef Q_OS_LINUX 458 466 .arg("Linux")
Note:
See TracChangeset
for help on using the changeset viewer.