aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp b/src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp
index b54e07bd..b711d587 100644
--- a/src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp
+++ b/src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp
@@ -32,7 +32,8 @@ page_wallpaper::~page_wallpaper(){
//================
void page_wallpaper::SaveSettings(){
QSettings settings("lumina-desktop","desktopsettings");
- QString DPrefix = "desktop-"+QString::number(cScreen)+"/";
+ QString screenID = QApplication::screens().at(cScreen)->name();
+ QString DPrefix = "desktop-"+screenID+"/";
QStringList bgs; //get the list of backgrounds to use
if(ui->radio_desk_multi->isChecked()){
for(int i=0; i<ui->combo_desk_bg->count(); i++){
@@ -56,7 +57,8 @@ void page_wallpaper::LoadSettings(int screennum){
cScreen = screennum; //save for later
loading = true;
QSettings settings("lumina-desktop","desktopsettings");
- QString DPrefix = "desktop-"+QString::number(cScreen)+"/";
+ QString screenID = QApplication::screens().at(cScreen)->name();
+ QString DPrefix = "desktop-"+screenID+"/";
QStringList bgs = settings.value(DPrefix+"background/filelist", QStringList()<<"default").toStringList();
ui->combo_desk_bg->clear();
bgstack15