mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Don't count 0 as a special case
This commit is contained in:
parent
5b8191556a
commit
093844bb9a
1 changed files with 12 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue