[vlc-commits] Qt4: Playlists: Fixing drop.

Hugo Beauzée-Luyssen git at videolan.org
Thu Dec 1 22:41:51 CET 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Nov 29 23:32:41 2011 +0100| [71e8745a8aad584c6e5fa1917ef8100a6b404c87] | committer: Jean-Baptiste Kempf

Qt4: Playlists: Fixing drop.

KDE sends a move event by default, unless ctrl is pressed

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71e8745a8aad584c6e5fa1917ef8100a6b404c87
---

 modules/gui/qt4/main_interface.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 13fda87..2a3a8f1 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -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;



More information about the vlc-commits mailing list