[vlc-devel] Qt: open media file via drag&drop

Juha Jeronen juha.jeronen at jyu.fi
Mon May 9 08:09:17 CEST 2011


Tested on KDE4+Konqueror. The suggested patch fixes the issue for me.

 -J


On 05/07/2011 11:12 PM, Jakob Leben wrote:
> On Sat, May 7, 2011 at 7:45 PM, Ilkka Ollakka <ileoo at videolan.org
> <mailto:ileoo at videolan.org>> wrote:
>
>     On Sat, May 07, 2011 at 08:27:45PM +0300, Juha Jeronen wrote:
>
>  
>
>     > > On Sat, May 07, 2011 at 01:37:29AM +0200, Jakob Leben wrote:
>     > >> For very long time already (couple of months) opening files
>     by drag&dropping
>     > >> them onto Qt interface does not work in the development
>     version on my Linux
>     > >> (Kubuntu, both 10.10 and 11.04).
>
>     > Doesn't work for me in KDE4+Konqueror. Maybe something to do
>     with KDE?
>
>     Yes, seems that konqueror doesn't do Qt::CopyAction on default
>     dnd, just
>     Qt::MoveAction. So basicly it could be just to check if action if
>     either
>     of those and set it to CopyAction, but not sure if it has some effects
>     (and kinda too tired to read documentation about it atm.)
>
>
> The change in behavior from 1.1.x to current was introduced in commit
> [eeb1cf53993]. Indeed, the previous behavior must have let through
> other actions than Qt::CopyAction, while the current doesn't.
> I don't see any reason for not responding to MoveAction as well. And I
> don't see any reason for setting the action
> in MainInterface::dropEventPlay either, as the drop event will be
> consumed and not processed any further so after responding to the
> event it really doesn't matter what the action is anymore.
>
> I propose the attached patch.
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110509/a94617cf/attachment.html>


More information about the vlc-devel mailing list