mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 15:51:55 +00:00
minor fixes
This commit is contained in:
parent
c636211e0e
commit
8a5f5b180a
2 changed files with 2 additions and 3 deletions
|
@ -317,7 +317,6 @@ static Class pathComponentCellClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
[cell setImage: image];
|
[cell setImage: image];
|
||||||
string = [string stringByDeletingLastPathComponent];
|
|
||||||
|
|
||||||
if ([array count] == 0) // the element we are adding is the last component that will show
|
if ([array count] == 0) // the element we are adding is the last component that will show
|
||||||
{
|
{
|
||||||
|
@ -331,6 +330,7 @@ static Class pathComponentCellClass;
|
||||||
[array insertObject: cell
|
[array insertObject: cell
|
||||||
atIndex: 0];
|
atIndex: 0];
|
||||||
RELEASE(cell);
|
RELEASE(cell);
|
||||||
|
string = [string stringByDeletingLastPathComponent];
|
||||||
u = [NSURL URLWithString: string
|
u = [NSURL URLWithString: string
|
||||||
relativeToURL: nil];
|
relativeToURL: nil];
|
||||||
if (u == nil && at_root == NO)
|
if (u == nil && at_root == NO)
|
||||||
|
|
|
@ -336,7 +336,6 @@ static Class pathCellClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[sender menu] close];
|
[[sender menu] close];
|
||||||
// AUTORELEASE([sender menu]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) mouseDown: (NSEvent *)event
|
- (void) mouseDown: (NSEvent *)event
|
||||||
|
@ -355,7 +354,7 @@ static Class pathCellClass;
|
||||||
NSPathComponentCell *c = nil;
|
NSPathComponentCell *c = nil;
|
||||||
NSEnumerator *en = [array objectEnumerator];
|
NSEnumerator *en = [array objectEnumerator];
|
||||||
|
|
||||||
while((c = [en nextObject]) != nil)
|
while ((c = [en nextObject]) != nil)
|
||||||
{
|
{
|
||||||
NSURL *u = [c URL];
|
NSURL *u = [c URL];
|
||||||
NSString *s = [[u path] lastPathComponent];
|
NSString *s = [[u path] lastPathComponent];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue