Don't count 0 as a special case

This commit is contained in:
Gregory John Casamento 2020-05-07 19:03:46 -04:00
parent 5b8191556a
commit 093844bb9a

View file

@ -441,8 +441,18 @@ static Class pathCellClass;
{
NSString *file = [files objectAtIndex: 0];
NSURL *u = [NSURL URLWithString: file];
BOOL accept = [_delegate pathControl: self
acceptDrop: sender];
BOOL accept = NO;
if ([self delegate])
{
accept = [_delegate pathControl: self
acceptDrop: sender];
}
else
{
accept = YES;
}
if (accept)
{
[self setURL: u];