diff options
-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 |