diff options
author | Ken Moore <ken@ixsystems.com> | 2017-02-27 11:01:08 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-02-27 11:01:08 -0500 |
commit | 7e39df7521a19baae35c7ae3415630624f990865 (patch) | |
tree | 13080644bd2f6a97b5f83383388b278c06a11b99 /src-qt5/core/libLumina/LDesktopUtils.cpp | |
parent | Re-sync the translation files with the latest from the Lumina source files. (diff) | |
download | lumina-7e39df7521a19baae35c7ae3415630624f990865.tar.gz lumina-7e39df7521a19baae35c7ae3415630624f990865.tar.bz2 lumina-7e39df7521a19baae35c7ae3415630624f990865.zip |
Silence a compile warning in LDesktopUtils (unused variable)
Diffstat (limited to 'src-qt5/core/libLumina/LDesktopUtils.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LDesktopUtils.cpp | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/src-qt5/core/libLumina/LDesktopUtils.cpp b/src-qt5/core/libLumina/LDesktopUtils.cpp index d6673ecd..575ae5a1 100644 --- a/src-qt5/core/libLumina/LDesktopUtils.cpp +++ b/src-qt5/core/libLumina/LDesktopUtils.cpp @@ -134,32 +134,9 @@ void LDesktopUtils::removeFavorite(QString path){ if(changed){ LDesktopUtils::saveFavorites(fav); } } -void LDesktopUtils::upgradeFavorites(int fromoldversionnumber){ - /*if(fromoldversionnumber <= 8004){ // < pre-0.8.4>, sym-links in the ~/.lumina/favorites dir} - //Include 0.8.4-devel versions in this upgrade (need to distinguish b/w devel and release versions later somehow) - QDir favdir(QDir::homePath()+"/.lumina/favorites"); - QFileInfoList symlinks = favdir.entryInfoList(QDir::Files | QDir::Dirs | QDir::System | QDir::NoDotAndDotDot); - QStringList favfile = LDesktopUtils::listFavorites(); //just in case some already exist - bool newentry = false; - for(int i=0; i<symlinks.length(); i++){ - if(!symlinks[i].isSymLink()){ continue; } //not a symlink - QString path = symlinks[i].symLinkTarget(); - QString name = symlinks[i].fileName(); //just use the name of the symlink from the old system - QString type; - if(symlinks[i].isDir()){ type = "dir"; } - else if(name.endsWith(".desktop")){ type = "app"; } - else{ type = LXDG::findAppMimeForFile(path); } - //Put the line into the file - favfile << name+"::::"+type+"::::"+path; - //Now remove the symlink - obsolete format - QFile::remove(symlinks[i].absoluteFilePath()); - newentry = true; - } - if(newentry){ - LDesktopUtils::saveFavorites(favfile); - } - }*/ //end check for version <= 0.8.4 - +void LDesktopUtils::upgradeFavorites(int){ //fromoldversionnumber + //NOTE: Version number syntax: <major>*1000000 + <minor>*1000 + <revision> + // Example: 1.2.3 -> 1002003 } void LDesktopUtils::LoadSystemDefaults(bool skipOS){ |