Commit 49c7c8cc authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

Qt4: Playlists: Fixing drop.

KDE sends a move event by default, unless ctrl is pressed
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 71e8745a8aad584c6e5fa1917ef8100a6b404c87)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a97ebe6e
...@@ -1186,7 +1186,7 @@ void MainInterface::dropEvent(QDropEvent *event) ...@@ -1186,7 +1186,7 @@ void MainInterface::dropEvent(QDropEvent *event)
void MainInterface::dropEventPlay( QDropEvent *event, bool b_play ) void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
{ {
if( event->possibleActions() & Qt::CopyAction ) if( event->possibleActions() & ( Qt::CopyAction | Qt::MoveAction ) )
event->setDropAction( Qt::CopyAction ); event->setDropAction( Qt::CopyAction );
else else
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment