Bug 452472

Summary: Drag&dropping image from outside doesn't work.
Product: [Applications] krita Reporter: acc4commissions
Component: GeneralAssignee: amyspark <amy>
Status: RESOLVED FIXED    
Severity: normal CC: amy
Priority: NOR    
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 acc4commissions 2022-04-10 14:34:32 UTC
SUMMARY
git 59f3789

Drag&dropping image from outside doesn't work.
It works if you drag&drop it with 'Insert As New File layer', 'Open As New Document'. 
The rest of the options doesn't work. File types don't seem to matter.


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: Win10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 amyspark 2022-04-10 16:23:30 UTC
The bug report is incomplete. Here are some starter bits I need in order to debug this:

- What image formats have you tried?
- From which programs have you tried dragging & dropping?
Comment 2 acc4commissions 2022-04-11 01:44:06 UTC
1 png, jpg, webp. As I already wrote image format/type doesn't seem relevant.
2 From folders, from browsers, every routes don't work as far as I tested. It also doesn't seem relevant. I haven't tested other 'programs' other than browsers tho. 

* I'm talking about drag&dropping into a document. Drag&dropping into start screen still works with no problem.
Comment 3 acc4commissions 2022-04-11 01:55:52 UTC
I also just noticed that drag&dropping multiple images works fine. It's only drag&dropping a single image file that is not working.
Comment 4 acc4commissions 2022-04-11 02:19:44 UTC
Ok. It seems that it happens depending on what option you selected in Configure Krita > General > Miscellaneous.

When I try drag&dropping after selecting- 
- 'Prefer downloading the original source' : Drag&dropping a single image into a document with [Insert as New Layer], [Insert as Reference Image] stops working. Everything else(including drag&dropping multiple images into a document) seems to work.
- 'Prefer a local copy' : Everything seems to work. Although I'm unsure that I tested every scenarios..
- 'Pasted the attached sRGB bitmap' : Krita crashes/closes. But I believe there's already a bugreport(bug 452130) on this.

Btw in all cases, drag&dropping into the start screen seems to work with no problem regardless of what option you select.

Other problem I found : 
The option itself seem (only visually) resets to 'Ask each time' after closing the configuration window.
Comment 5 Bug Janitor Service 2022-04-11 04:35:03 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 6 amyspark 2022-04-11 11:07:25 UTC
Thanks a lot! Assigning now.
Comment 7 amyspark 2022-04-21 14:32:54 UTC
The other half of the glitch was fixed in https://invent.kde.org/graphics/krita/-/commit/505e94f7c8e4b85c9193220182ec5a8563fdb63f
Comment 8 acc4commissions 2022-04-21 18:27:37 UTC
I'm so glad it's fixed! Thanks for all the works. :D