[Panel-devel] [PATCH] drag and drop on desktop icons

Marco Martin notmart at gmail.com
Wed Jan 2 12:48:54 CET 2008


On Tuesday 01 January 2008, Aaron J. Seigo wrote:
> On Sunday 30 December 2007, Marco Martin wrote:
> > second version: now it works also with drop on desktop files and there is
> > a workaround of #152401 so you can drop multiple files with dolphin.
>
> ew. a fix for KUrl::List would be most nice. the code isn't all that
> complex.. perhaps i'll take a look in the morning...
it seems that in KUrl::List::fromMimeData() (around line 249)
QByteArray payload = mimeData->data( "application/x-kde-urilist" );
always returns an empty string with dolphin and
payload = mimeData->data( "text/uri-list" );
returns only one (don't know how mimeData->data() works, but perhaps it 
attempts to break the list with the wrong separator?)
mimeData contains all the urls, because if i do 
mimeData->data( "text/plain" ); all the text is returned and everything seems 
to work

Cheers,
Marco Martin


More information about the Panel-devel mailing list