]> git.sesse.net Git - vlc/commitdiff
Qt4: Playlists: Fixing drop.
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Tue, 29 Nov 2011 22:32:41 +0000 (23:32 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 1 Dec 2011 21:32:51 +0000 (22:32 +0100)
KDE sends a move event by default, unless ctrl is pressed

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/main_interface.cpp

index 13fda87a813a17939d4926a9ba21e97a31a886e0..2a3a8f1c1ed5c3016f231623d96fac783742819f 100644 (file)
@@ -1186,7 +1186,7 @@ void MainInterface::dropEvent(QDropEvent *event)
 
 void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
 {
-    if( event->possibleActions() & Qt::CopyAction )
+    if( event->possibleActions() & ( Qt::CopyAction | Qt::MoveAction ) )
        event->setDropAction( Qt::CopyAction );
     else
         return;