Review Request 118423: [klipper] Port KMimeType to QMimeType

Aleix Pol Gonzalez aleixpol at kde.org
Fri May 30 13:49:39 UTC 2014



> On May 30, 2014, 1:15 p.m., David Edmundson wrote:
> > klipper/urlgrabber.cpp, line 140
> > <https://git.reviewboard.kde.org/r/118423/diff/1/?file=276477#file276477line140>
> >
> >     we lose fast mode here.
> >     I think this means if I drag a 100Gb file from the internet onto klipper it will start downloading it.
> >     
> >     Not sure how problematic this is.
> 
> Martin Gräßlin wrote:
>     given the documentation that should be fine, see http://qt-project.org/doc/qt-5/qmimedatabase.html#mimeTypeForUrl
>     
>     my interpretation of the documentation is that it won't download

Yes, it won't download, it will just return a default mimetype, which is actually pretty bad...


> On May 30, 2014, 1:15 p.m., David Edmundson wrote:
> > klipper/urlgrabber.cpp, line 147
> > <https://git.reviewboard.kde.org/r/118423/diff/1/?file=276477#file276477line147>
> >
> >     this comment doesn't seem true, we explicitly check if the mimetype is html
> 
> Martin Gräßlin wrote:
>     I read this comment different: if clipboard contents starts with http, enforce the mimetype to be html, because that's what's being done in the if

Yep, it's just ensuring it's html if it's http.


- Aleix


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118423/#review58802
-----------------------------------------------------------


On May 30, 2014, 1:38 p.m., Martin Gräßlin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118423/
> -----------------------------------------------------------
> 
> (Updated May 30, 2014, 1:38 p.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> [klipper] Port KMimeType to QMimeType
> 
> 
> Diffs
> -----
> 
>   klipper/urlgrabber.cpp 4eccb7065ae2932cc548c902ab3a8c50e4972444 
> 
> Diff: https://git.reviewboard.kde.org/r/118423/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Martin Gräßlin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140530/d42ff952/attachment.html>


More information about the Plasma-devel mailing list