Bug 313137 - When pasting URL, it should insert the file, not just the path as text
Summary: When pasting URL, it should insert the file, not just the path as text
Status: RESOLVED FIXED
Alias: None
Product: kolourpaint
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: kolourpaint-support
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-12 15:27 UTC by Kai Uwe Broulik
Modified: 2017-02-04 17:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
filepath text content is inserted instead of proper clipboard content (image) (30.03 KB, image/png)
2017-01-31 11:04 UTC, Daniel Duris
Details

Note You need to log in before you can comment on or make changes to this bug.
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!