mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 22:17:39 +00:00
Fixed -appIconForApp: in NSWorkspace
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20256 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
38ca67f7e9
commit
7a7ef628ca
2 changed files with 8 additions and 5 deletions
|
@ -1488,12 +1488,9 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
|
|||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
iconPath = [[bundle infoDictionary] objectForKey: @"NSIcon"];
|
||||
|
||||
if (![iconPath isAbsolutePath])
|
||||
{
|
||||
iconPath = [[bundle bundlePath] stringByAppendingPathComponent: iconPath];
|
||||
}
|
||||
iconPath = [bundle pathForImageResource: iconPath];
|
||||
|
||||
return [self _saveImageFor: iconPath];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue