Commit 3b4be656 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Wallpaper Image Configuration] Set cfg_Image whenever delegate becomes current

The delete button changes the currentIndex to something else when deleting the current image but that didn't update cfg_Image.
Just listen to when we become current. Might also fix keyboard navigation (didn't test if that worked before but it certainly does now).

BUG: 388805

Differential Revision:
parent ade18175
......@@ -35,6 +35,11 @@ MouseArea {
hoverEnabled: true
GridView.onIsCurrentItemChanged: {
if (GridView.isCurrentItem) {
cfg_Image = model.path
//note: this *doesn't* use system colors since it represent a
//skeymorphic photograph rather than a widget
......@@ -200,7 +205,6 @@ MouseArea {
onClicked: {
wallpapersGrid.currentIndex = index
cfg_Image = model.path
onExited: Tooltip.hideText()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment