aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2016-12-14 21:54:31 +0000
committerWeblate <noreply@weblate.org>2016-12-14 21:54:31 +0000
commitb965af1625a4296f8ff6d3a1663cae23b73d334f (patch)
tree459685dd1da8c75f67772762aa062d80dfc148f0 /src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp
parentTranslated using Weblate (lumina_DESKTOP@fr (generated)) (diff)
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.tar.gz
lumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.tar.bz2
lumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp')
-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