From 32d04b1809c444801c7b002f944b5e7f23acfb24 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 13 Aug 2013 11:57:31 +0200 Subject: [PATCH] fix wallpaper selection --- .../configuration/ConfigurationContainmentAppearance.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shell/qmlpackages/desktop/contents/configuration/ConfigurationContainmentAppearance.qml b/src/shell/qmlpackages/desktop/contents/configuration/ConfigurationContainmentAppearance.qml index 7b2b1cd7e..690126c66 100644 --- a/src/shell/qmlpackages/desktop/contents/configuration/ConfigurationContainmentAppearance.qml +++ b/src/shell/qmlpackages/desktop/contents/configuration/ConfigurationContainmentAppearance.qml @@ -33,8 +33,8 @@ ColumnLayout { //BEGIN functions function saveConfig() { for (var key in configDialog.wallpaperConfiguration) { - if (main.currentPage["cfg_"+key] !== undefined) { - configDialog.wallpaperConfiguration[key] = main.currentPage["cfg_"+key] + if (main.currentItem["cfg_"+key] !== undefined) { + configDialog.wallpaperConfiguration[key] = main.currentItem["cfg_"+key] } } configDialog.applyWallpaper() @@ -42,8 +42,8 @@ ColumnLayout { function restoreConfig() { for (var key in configDialog.wallpaperConfiguration) { - if (main.currentPage["cfg_"+key] !== undefined) { - main.currentPage["cfg_"+key] = configDialog.wallpaperConfiguration[key] + if (main.currentItem["cfg_"+key] !== undefined) { + main.currentItem["cfg_"+key] = configDialog.wallpaperConfiguration[key] } } }