mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:20:37 +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
|
@ -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…
Add table
Add a link
Reference in a new issue