Fix for file extensions map

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4251 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-05-14 18:21:59 +00:00
parent fd3f6f5899
commit 804b24cbb8

View file

@ -314,6 +314,9 @@ static void addExtensionsForApplication(NSDictionary *info, NSString *app)
NSLog(@"bad app NSTypes (type not a dictionary) - %@\n", app);
return;
}
/*
* Set 't' to the dictionary defining a particular file type.
*/
t = (NSDictionary*)o1;
o1 = [t objectForKey: @"NSUnixExtensions"];
if (o1 == nil)
@ -341,7 +344,7 @@ static void addExtensionsForApplication(NSDictionary *info, NSString *app)
}
if ([d objectForKey: app] == NO)
{
[d setObject: o0 forKey: app];
[d setObject: t forKey: app];
}
}
}