diff options
author | Ken Moore <ken@pcbsd.org> | 2015-04-27 16:17:40 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-04-27 16:17:40 -0400 |
commit | 0120aede8249ca263f79e4e67845ac4af8e1559f (patch) | |
tree | 4ef315b57b30956fc54ec1806eb01ef02ab443d2 /lumina-desktop/LSession.cpp | |
parent | Add support for lumina-fm to be able to handle all input files (not just *.de... (diff) | |
parent | Merge branch 'master' of github.com:pcbsd/lumina (diff) | |
download | lumina-0120aede8249ca263f79e4e67845ac4af8e1559f.tar.gz lumina-0120aede8249ca263f79e4e67845ac4af8e1559f.tar.bz2 lumina-0120aede8249ca263f79e4e67845ac4af8e1559f.zip |
Merge branch 'master' of github.com:pcbsd/lumina
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r-- | lumina-desktop/LSession.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp index 5b223ad7..4ad6d1a1 100644 --- a/lumina-desktop/LSession.cpp +++ b/lumina-desktop/LSession.cpp @@ -315,8 +315,10 @@ void LSession::watcherChange(QString changed){ void LSession::checkUserFiles(){ //internal version conversion examples: // [1.0.0 -> 1000000], [1.2.3 -> 1002003], [0.6.1 -> 6001] - int oldversion = VersionStringToNumber(sessionsettings->value("DesktopVersion","0").toString()); - bool newversion = ( oldversion < VersionStringToNumber(this->applicationVersion()) ); + QString OVS = sessionsettings->value("DesktopVersion","0").toString(); //Old Version String + int oldversion = VersionStringToNumber(OVS); + bool newversion = ( oldversion < VersionStringToNumber(this->applicationVersion()) ); //increasing version number + bool newrelease = ( OVS.endsWith("-devel", Qt::CaseInsensitive) && this->applicationVersion().endsWith("-release", Qt::CaseInsensitive) ); //Moving from devel to release //Check for the desktop settings file QString dset = QDir::homePath()+"/.lumina/LuminaDE/desktopsettings.conf"; @@ -331,10 +333,10 @@ void LSession::checkUserFiles(){ }*/ LUtils::LoadSystemDefaults(); } - /*if(oldversion <= 8003){ - //Convert the old->new favorites framework (Not implemented yet) - - }*/ + if(newversion || newrelease){ + //Convert the favorites framework as necessary + LUtils::upgradeFavorites(oldversion); + } //Check for the default applications file for lumina-open dset = QDir::homePath()+"/.lumina/LuminaDE/lumina-open.conf"; |