aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-11-22 14:16:14 -0500
committerKen Moore <ken@ixsystems.com>2016-11-22 14:16:14 -0500
commit86fc339b032d454469c966066d9b4ca61f844e30 (patch)
treec7f407b4430e83d48af6ada0124ce786afc2052f /src-qt5
parentFix up the default settings-setting routine to use the new panel/desktop synt... (diff)
downloadlumina-86fc339b032d454469c966066d9b4ca61f844e30.tar.gz
lumina-86fc339b032d454469c966066d9b4ca61f844e30.tar.bz2
lumina-86fc339b032d454469c966066d9b4ca61f844e30.zip
Oops - NOW the desktop/panel settings-reload will work.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/libLumina/LDesktopUtils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src-qt5/core/libLumina/LDesktopUtils.cpp b/src-qt5/core/libLumina/LDesktopUtils.cpp
index 80135ed0..978ce70b 100644
--- a/src-qt5/core/libLumina/LDesktopUtils.cpp
+++ b/src-qt5/core/libLumina/LDesktopUtils.cpp
@@ -271,8 +271,8 @@ void LDesktopUtils::LoadSystemDefaults(bool skipOS){
// -- DESKTOP SETTINGS --
QString deskID = QApplication::primaryScreen()->name();
//(only works for the primary desktop at the moment)
- tmp = sysDefaults.filter("desktop-"+deskID);
- if(tmp.isEmpty()){ tmp = sysDefaults.filter("desktop."+deskID); }//for backwards compat
+ tmp = sysDefaults.filter("desktop_");
+ if(tmp.isEmpty()){ tmp = sysDefaults.filter("desktop."); }//for backwards compat
if(!tmp.isEmpty()){deskset << "[desktop-"+deskID+"]"; }
for(int i=0; i<tmp.length(); i++){
if(tmp[i].startsWith("#") || !tmp[i].contains("=") ){ continue; }
@@ -294,9 +294,9 @@ void LDesktopUtils::LoadSystemDefaults(bool skipOS){
// -- PANEL SETTINGS --
//(only works for the primary desktop at the moment)
for(int i=1; i<11; i++){
- QString panvar = "panel_"+deskID+"."+QString::number(i-1);
+ QString panvar = "panel"+QString::number(i);
tmp = sysDefaults.filter(panvar);
- if(!tmp.isEmpty()){deskset << "["+panvar+"]"; }
+ if(!tmp.isEmpty()){deskset << "[panel_"+deskID+"."+QString::number(i-1)+"]"; }
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();
bgstack15