diff options
author | Ken Moore <moorekou@gmail.com> | 2015-07-08 12:44:05 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-07-08 12:44:05 -0400 |
commit | c3d45ae1b1aefa78eb29e8809f178bb941f83ddc (patch) | |
tree | 88230ba2660e0fb901c46bd8c28a6ae9614dccfe /libLumina | |
parent | Fix up the loading of luminaDesfaults.conf quite a bit (now it works properly... (diff) | |
download | lumina-c3d45ae1b1aefa78eb29e8809f178bb941f83ddc.tar.gz lumina-c3d45ae1b1aefa78eb29e8809f178bb941f83ddc.tar.bz2 lumina-c3d45ae1b1aefa78eb29e8809f178bb941f83ddc.zip |
Clean up a few other case-sensitive issues with the luminaDesktop.conf file loading routine.
Diffstat (limited to 'libLumina')
-rw-r--r-- | libLumina/LuminaUtils.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libLumina/LuminaUtils.cpp b/libLumina/LuminaUtils.cpp index 2533e25c..78f7826e 100644 --- a/libLumina/LuminaUtils.cpp +++ b/libLumina/LuminaUtils.cpp @@ -318,8 +318,8 @@ void LUtils::LoadSystemDefaults(bool skipOS){ for(int i=0; i<tmp.length(); i++){ if(tmp[i].startsWith("#") || !tmp[i].contains("=") ){ continue; } QString var = tmp[i].section("=",0,0).toLower().simplified(); - QString val = tmp[i].section("=",1,1).section("#",0,0).toLower().simplified(); - QString istrue = (val=="true") ? "true": "false"; + QString val = tmp[i].section("=",1,1).section("#",0,0).simplified(); + QString istrue = (val.toLower()=="true") ? "true": "false"; //Change in 0.8.5 - use "_" instead of "." within variables names - need backwards compat for a little while if(var.contains(".")){ var.replace(".","_"); } //Now parse the variable and put the value in the proper file @@ -345,8 +345,8 @@ void LUtils::LoadSystemDefaults(bool skipOS){ for(int i=0; i<tmp.length(); i++){ if(tmp[i].startsWith("#") || !tmp[i].contains("=") ){ continue; } QString var = tmp[i].section("=",0,0).toLower().simplified(); - QString val = tmp[i].section("=",1,1).section("#",0,0).toLower().simplified(); - QString istrue = (val=="true") ? "true": "false"; + QString val = tmp[i].section("=",1,1).section("#",0,0).simplified(); + QString istrue = (val.toLower()=="true") ? "true": "false"; //Change in 0.8.5 - use "_" instead of "." within variables names - need backwards compat for a little while if(var.contains(".")){ var.replace(".","_"); } //Now parse the variable and put the value in the proper file @@ -367,8 +367,8 @@ void LUtils::LoadSystemDefaults(bool skipOS){ for(int i=0; i<tmp.length(); i++){ if(tmp[i].startsWith("#") || !tmp[i].contains("=") ){ continue; } QString var = tmp[i].section("=",0,0).toLower().simplified(); - QString val = tmp[i].section("=",1,1).section("#",0,0).toLower().simplified(); - QString istrue = (val=="true") ? "true": "false"; + QString val = tmp[i].section("=",1,1).section("#",0,0).simplified(); + QString istrue = (val.toLower()=="true") ? "true": "false"; //Change in 0.8.5 - use "_" instead of "." within variables names - need backwards compat for a little while if(var.contains(".")){ var.replace(".","_"); } //Now parse the variable and put the value in the proper file @@ -380,9 +380,9 @@ void LUtils::LoadSystemDefaults(bool skipOS){ deskset << "height="+val; } else if(var==(panvar+"_autohide")){ deskset << "hidepanel="+istrue; } - else if(var==(panvar+"_location")){ deskset << "location="+val; } - else if(var==(panvar+"_plugins")){ deskset << "pluginlist="+val; } - else if(var==(panvar+"_pinlocation")){ deskset << "pinLocation="+val; } + else if(var==(panvar+"_location")){ deskset << "location="+val.toLower(); } + else if(var==(panvar+"_plugins")){ deskset << "pluginlist="+val.toLower(); } + else if(var==(panvar+"_pinlocation")){ deskset << "pinLocation="+val.toLower(); } else if(var==(panvar+"_edgepercent")){ deskset << "lengthPercent="+val; } } if(!tmp.isEmpty()){ deskset << ""; } //space between sections |