Merge pull request #8024 from pedro/handle-drop-mac-os-fix

Fix support for dragging urls in Mac
This commit is contained in:
Cheng Zhao 2016-11-27 14:24:35 +08:00 committed by GitHub
commit 8fd6463ab0

View file

@ -297,7 +297,6 @@ const CGFloat kVerticalTitleMargin = 2;
if (NSPointInRect([sender draggingLocation], self.frame)) { if (NSPointInRect([sender draggingLocation], self.frame)) {
trayIcon_->NotifyDrop(); trayIcon_->NotifyDrop();
[self handleDrop:sender];
} }
} }
@ -325,6 +324,7 @@ const CGFloat kVerticalTitleMargin = 2;
} }
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender { - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender {
[self handleDrop:sender];
return YES; return YES;
} }