mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
53e4e9c4ac
commit
a81934706f
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-10-16 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSWorkspace.m (-_iconForExtension:): Fix bug where the
|
||||
user's preferred applications were ignored because the code did
|
||||
attempt to look them up in the wrong place.
|
||||
|
||||
2010-10-13 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/Cocoa/Cocoa.h: Add one more protection around definition
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue