Bug 344384

Summary: Wrong item focus after wallpaper removal
Product: [Plasma] plasmashell Reporter: soee <kontakt>
Component: Image WallpaperAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: antonis.tsiapaliokas, simonandric5
Priority: NOR    
Version: 5.2.0   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
URL: https://www.youtube.com/watch?v=7ZGxSrtCPrA
Latest Commit: Version Fixed In:

Description soee 2015-02-20 14:12:48 UTC
If we have more than 2 wallpapers on the list and the active one is not the last item, than after some wallpaper is removed, focus goes on the last intem on the list.

Reproducible: Always

Steps to Reproduce:
1. Add more than 2 wallpapers
2. Select some as active (but not the last one on the list)
3. Remove some wallpaper that is on the list before the current one
4. Focus goes to last wallpaper not the one that was set as active

Actual Results:  
Focus has been set on last wallpaper on the list.

Expected Results:  
Focus should stay on the active wallpaper.
Comment 1 Antonis Tsiapaliokas 2015-04-06 13:16:21 UTC
I have upload a patch for this bug in the reviewboard.

https://git.reviewboard.kde.org/r/123275/
Comment 2 Antonis Tsiapaliokas 2015-04-09 13:41:52 UTC
Git commit ba61ce61b4e1ebb28df0cc10aefa7a1824282394 by Antonis Tsiapaliokas.
Committed on 09/04/2015 at 13:41.
Pushed by tsiapaliokas into branch 'master'.

Restore index after removing a wallpaper

REVIEW: 123275

M  +9    -0    wallpapers/image/imagepackage/contents/ui/config.qml

http://commits.kde.org/plasma-workspace/ba61ce61b4e1ebb28df0cc10aefa7a1824282394