[vlc-commits] macosx: CAS: fixed redraw issue when entering the dropzone' s subviews during a drag operation

Felix Paul Kühne git at videolan.org
Sun Jul 15 23:39:02 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jul 15 21:25:22 2012 +0200| [b6322d35a71cbb2c5cdcfa4c65d12d49ad7a86ac] | committer: Felix Paul Kühne

macosx: CAS: fixed redraw issue when entering the dropzone's subviews during a drag operation

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

 modules/gui/macosx/ConvertAndSave.m |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/modules/gui/macosx/ConvertAndSave.m b/modules/gui/macosx/ConvertAndSave.m
index 9dde44f..690f7f9 100644
--- a/modules/gui/macosx/ConvertAndSave.m
+++ b/modules/gui/macosx/ConvertAndSave.m
@@ -669,10 +669,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
 
 - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
 {
-    if ((NSDragOperationGeneric & [sender draggingSourceOperationMask]) == NSDragOperationGeneric)
-        return NSDragOperationGeneric;
-
-    return NSDragOperationNone;
+    return [[[self superview] superview] draggingEntered:sender];
 }
 
 - (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender
@@ -701,10 +698,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
 
 - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
 {
-    if ((NSDragOperationGeneric & [sender draggingSourceOperationMask]) == NSDragOperationGeneric)
-        return NSDragOperationGeneric;
-
-    return NSDragOperationNone;
+    return [[[self superview] superview] draggingEntered:sender];
 }
 
 - (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender



More information about the vlc-commits mailing list