diff options
author | Ken Moore <ken@ixsystems.com> | 2016-10-17 10:52:11 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-10-17 10:52:11 -0400 |
commit | f2266278f76e274a87219ec052d1f7c58dc596bb (patch) | |
tree | 8643bce7bd455033c92fe97ce346bfec15c43295 /src-qt5/core-utils/lumina-config/pages | |
parent | Turn off some debugging and fix the repaint of the entire wallpaper on change. (diff) | |
download | lumina-f2266278f76e274a87219ec052d1f7c58dc596bb.tar.gz lumina-f2266278f76e274a87219ec052d1f7c58dc596bb.tar.bz2 lumina-f2266278f76e274a87219ec052d1f7c58dc596bb.zip |
Make sure the wallpaper page also uses the new monitor ID for saving/loading settings.
Diffstat (limited to 'src-qt5/core-utils/lumina-config/pages')
-rw-r--r-- | src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp | 6 |
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(); |