* Source/GSInfoPanel.m: Minor correction in initWithDictionary to

display url properly, if it is not specified in the dictionary passed
	or if the dictionary is nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26853 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-09-17 22:15:21 +00:00
parent d2901739b5
commit 29373b4707
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2008-09-17 18:15-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSInfoPanel.m: Minor correction in initWithDictionary to
display url properly, if it is not specified in the dictionary passed
or if the dictionary is nil.
2008-09-17 17:52-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSWorkspace.m: Exclude list of reserved mount names from

View file

@ -319,11 +319,13 @@ new_label (NSString *value)
}
/* URL */
if (dictionary)
url = [dictionary objectForKey: @"URL"];
url = [dictionary objectForKey: @"URL"];
if ([url isKindOfClass: [NSString class]] == NO)
url = nil;
/* NB: URL can be nil */
if (nil_or_not_of_class (url, [NSString class]))
{
url = value_from_info_plist_for_key (@"URL");
}
// URL can be nil
/* Copyright */
if (dictionary)