From f2266278f76e274a87219ec052d1f7c58dc596bb Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 17 Oct 2016 10:52:11 -0400 Subject: Make sure the wallpaper page also uses the new monitor ID for saving/loading settings. --- src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src-qt5') 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; icombo_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(); -- cgit