Bug 424161

Summary: Unable to change the wallpaper via drag and drop anymore
Product: [Plasma] plasmashell Reporter: ParsaMousavi <sepamou>
Component: Image & Slideshow wallpaper pluginsAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: nate, plasma-bugs-null
Priority: VHI Keywords: regression
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.20
Sentry Crash Report:

Description ParsaMousavi 2020-07-13 16:54:49 UTC
When I drag an image from Dolphin and drop it into the desktop area and then click on the "Set Image" option , the wallpaper doesn't change at all.I get the following messages from the output of the "plasmashell" command in terminal after doing that:
```
Arrived mimeData (QUrl("file:///dragged_image_URI/Cloud%231.jpg")) ("text/uri-list", "text/plain", "application/x-kde4-urilist") at 912 ,  12
Mimetype Job returns. "image/jpeg"
Received a suitable dropEvent at  QPoint(912,12)
Bailing out. Cannot find associated dropEvent related to the TransferJob
Creating menu for:  "image/jpeg"
QMetaObject::invokeMethod: No such method StackView_QMLTYPE_127_QML_128::setUrl(QVariant)
```

After that the desired image gets to the list of the recent wallpapers in the "Desktop Settings --- Plasma" window (right-click on the desktop->Configure desktop) , but I'm also unable to set the wallpaper by the means of that.


STEPS TO REPRODUCE
1. Drag an image into the desktop area from the file-manager
2. Click on the "Set Image" option from the appeared drop-down menu




SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 5.3.0 / KDE Neon Unstable 
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.72.0
Qt Version: 5.14.2
Comment 1 Nate Graham 2020-07-13 17:38:25 UTC
Can confirm.
Comment 2 David Redondo 2020-07-14 11:46:41 UTC
Git commit ede14440c7ead9e4fbe41b9b596b44feaf0d4e18 by David Redondo.
Committed on 14/07/2020 at 11:46.
Pushed by davidre into branch 'master'.

Revert "[wallpaper] Drop unused method"

This reverts commit 221a3a52223d90bdbe514d715732cfcd6fdb7abd.
This method is actually called by WallpaperInterface for drag and drop.

M  +4    -0    wallpapers/image/imagepackage/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/commit/ede14440c7ead9e4fbe41b9b596b44feaf0d4e18