Bug 446029

Summary: Cannot drop web images onto the welcome screen
Product: [Applications] krita Reporter: Nagy Tibor <xnagytibor>
Component: GeneralAssignee: amyspark <amy>
Severity: normal CC: amy
Priority: NOR    
Version: 4.4.8   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Bug Depends on:    
Bug Blocks: 447428    
Attachments: Screen capture

Description Nagy Tibor 2021-11-24 12:36:53 UTC
Created attachment 143899 [details]
Screen capture

Krita currently throws a "The file <URL> does not exist." error when dropping images from web browsers onto the welcome screen. This is kinda inconsistent with how drag and drop works on the document canvas, where opening web images by drag and drop are supported and works flawlessly. I would expect the welcome screen also support this.

Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3
Graphics Platform: X11
Browser Version: Vivaldi 4.3.2439.71
Comment 1 amyspark 2021-11-24 16:16:20 UTC
This is an inconsistency in how we handle drag&drop events, depending on whether they come from the welcome widget or the KisView.

The welcome widget expects a drop event with an image and an URL, but through the document importer accepts only local files (which in this case doesn't exist; I also tested this with Vivaldi 4.0.2312.33). Conversely, the KisView accepts all drops that have an URL in them (by retrieving the remote URL to a temporary file), but ignoring the attached image.
Comment 2 Bug Janitor Service 2021-11-25 14:12:18 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1177