summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <hein@kde.org>2017-04-13 21:24:13 (GMT)
committerEike Hein <hein@kde.org>2017-04-14 16:51:14 (GMT)
commit1a26abe5b0e6af45eab95a6147c627793755e088 (patch)
tree3bc4ac8dc649fda19824c28a964357d8a808e580
parentd9937c535aa8c6f7eaf381cb882e53a8f1d34d2e (diff)
Fix losing wallpaper selection when clicking "Apply".
Summary: Currently the selected wallpaper is deselected when the "Apply" button is clicked, as if no wallpaper is selected. This patch fixes that. I didn't understand what the original restoreIndex thing was trying to do by passing the count, so I gutted it and wrote code that makes more sense to me. Reviewers: #plasma, mart Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D5440
-rw-r--r--wallpapers/image/imagepackage/contents/ui/config.qml8
1 files changed, 0 insertions, 8 deletions
diff --git a/wallpapers/image/imagepackage/contents/ui/config.qml b/wallpapers/image/imagepackage/contents/ui/config.qml
index eba3179..c851f3a 100644
--- a/wallpapers/image/imagepackage/contents/ui/config.qml
+++ b/wallpapers/image/imagepackage/contents/ui/config.qml
@@ -34,10 +34,8 @@ ColumnLayout {
property int cfg_FillMode
property var cfg_SlidePaths: ""
property int cfg_SlideInterval: 0
- signal restoreIndex(int count)
function saveConfig() {
- root.restoreIndex(imageWallpaper.wallpaperModel.count)
imageWallpaper.commitDeletion();
}
@@ -298,12 +296,6 @@ ColumnLayout {
wallpapersGrid.currentIndex = imageWallpaper.wallpaperModel.indexOf(cfg_Image);
wallpapersGrid.positionViewAtIndex(wallpapersGrid.currentIndex, GridView.Visible)
}
- Connections {
- target: root
- onRestoreIndex: {
- wallpapersGrid.currentIndex = wallpapersGrid.currentIndex - count
- }
- }
Keys.onPressed: {
if (count < 1) {