[vlmc-devel] commit: TracksView: explicitely reject innapropriate event. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Sun Aug 29 21:38:10 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Aug 29 17:49:46 2010 +0200| [24eeabaab6ae723c39997e4963f25675ba07ead4] | committer: Hugo Beauzée-Luyssen
TracksView: explicitely reject innapropriate event.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=24eeabaab6ae723c39997e4963f25675ba07ead4
---
src/Gui/timeline/TracksView.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index c46d7ca..e7386a3 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -284,6 +284,11 @@ TracksView::dragEnterEvent( QDragEnterEvent *event )
{
if ( event->mimeData()->hasFormat( "vlmc/uuid" ) )
event->acceptProposedAction();
+ else
+ {
+ event->ignore();
+ return ;
+ }
QString fullId = QString( event->mimeData()->data( "vlmc/uuid" ) );
Clip *clip = Library::getInstance()->clip( fullId );
More information about the Vlmc-devel
mailing list