Bug 452897

Summary: Cannot add reference image by drag and drop
Product: [Applications] krita Reporter: Alvin Wong <alvin>
Component: Tools/Reference ImagesAssignee: amyspark <amy>
Status: RESOLVED DUPLICATE    
Severity: normal CC: amy
Priority: NOR Keywords: regression
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alvin Wong 2022-04-23 08:30:48 UTC
1. Drag and drop an image from Windows Explorer or Chrome into Krita
2. Select "Insert as Reference Image"
3. Nothing happens

(If dragging from Firefox, the "Multiple Paste Sources Detected" dialog will pop up, which would then allow the image to be added as a reference image.)

Regression from 5.0.5.

(Nightly f665ca6c0a)
Comment 1 amyspark 2022-04-23 13:26:06 UTC
This piece of code keeps whack-a-moling...
Comment 2 amyspark 2022-04-24 00:31:19 UTC
Cannot reproduce on commit eeec8af100. Tried with Edge 100.0.1185.50  and Vivaldi 5.1.2567.57.

In both browser cases, dragging and dropping an image results in the network access flow triggering, accepting the request will insert the reference image correctly. In the Windows Explorer case, inserting the reference image works out of the box.

Awaiting a complete repro case.
Comment 3 amyspark 2022-04-24 13:17:00 UTC
Closing as duplicate of 452856 because, on old enough Chromes (<96 iirc), the sole source attached to a paste is a bitmap and these would get ignored if the source selection was set to PASTE_ASK in the preferences.

*** This bug has been marked as a duplicate of bug 452856 ***