Bug 313137

Summary: When pasting URL, it should insert the file, not just the path as text
Product: [Applications] kolourpaint Reporter: Kai Uwe Broulik <kde>
Component: generalAssignee: kolourpaint-support
Status: RESOLVED FIXED    
Severity: wishlist CC: kdebugs, martin
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: filepath text content is inserted instead of proper clipboard content (image)

Description Kai Uwe Broulik 2013-01-12 15:27:26 UTC
When I copy an URL (or at least a local path) and paste it into Kolourpaint, all I get is the URL pasted as plain text. It should instead load the file and paste it.

Reproducible: Always

Steps to Reproduce:
1. Open a picture in Gwenview
2. Choose Edit → Copy
3. Paste in Kolourpaint
Actual Results:  
The path to the file gets pasted

Expected Results:  
The picture itself gets pasted like if I used the "Paste from file" function
Comment 1 Daniel Duris 2017-01-31 11:02:46 UTC
Will this minor bug get finally fixed? Pretty annoying that developers can not respect clipboard content and kolourpaint pastes text (URL / filepath) instead!

KolourPaint
Version 4.14.22
Using KDE Development Platform 4.14.22
Comment 2 Daniel Duris 2017-01-31 11:04:22 UTC
Created attachment 103731 [details]
filepath text content is inserted instead of proper clipboard content (image)
Comment 3 Martin Koller 2017-02-04 11:22:30 UTC
Git commit ebdc633b0c45e8a7c12eccdcdac9ae25908435b7 by Martin Koller.
Committed on 04/02/2017 at 11:20.
Pushed by mkoller into branch 'master'.

When pasting an URL, check if it's a path to a local image file to load

M  +20   -7    layers/selections/kpSelectionDrag.cpp

https://commits.kde.org/kolourpaint/ebdc633b0c45e8a7c12eccdcdac9ae25908435b7
Comment 4 Daniel Duris 2017-02-04 17:57:48 UTC
Thank you!