Fix bug where NSWorkspace did ignore the user's preferred application

when computing the icon associated with a file type.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31515 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-10-16 07:45:48 +00:00
parent 53e4e9c4ac
commit a81934706f
2 changed files with 8 additions and 2 deletions

View file

@ -2302,12 +2302,12 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
*/
if (prefs)
{
if ((appName = [extInfo objectForKey: @"Editor"]) != nil)
if ((appName = [prefs objectForKey: @"Editor"]) != nil)
{
icon = [self _extIconForApp: appName info: extInfo];
}
if (icon == nil
&& (appName = [extInfo objectForKey: @"Viewer"]) != nil)
&& (appName = [prefs objectForKey: @"Viewer"]) != nil)
{
icon = [self _extIconForApp: appName info: extInfo];
}