mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:10:48 +00:00
fixup error in last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27324 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
69d27431a9
commit
d9e9d4f198
2 changed files with 19 additions and 6 deletions
|
@ -1,9 +1,14 @@
|
|||
2008-12-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSWorkspace.m: Restore priority in lookup for Editors
|
||||
error in last change pointed out by david Ayers.
|
||||
|
||||
2008-12-16 19:41-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/GSNibLoading.m: Correct issue with setting next key view and
|
||||
previous key view.
|
||||
* Source/NSView.m: Comment out frame/bounds matrix calculation since they
|
||||
are done when needed.
|
||||
* Source/NSView.m: Comment out frame/bounds matrix calculation
|
||||
since they are done when needed.
|
||||
|
||||
2008-12-16 17:23-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
|
|
|
@ -2385,10 +2385,18 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
|
|||
|
||||
info = [apps objectForKey: appName];
|
||||
str = [info objectForKey: @"NSRole"];
|
||||
if (str == nil
|
||||
|| [str isEqualToString: @"Editor"]
|
||||
|| [str isEqualToString: @"Viewer"]
|
||||
|| [str isEqualToString: @""])
|
||||
/* NB. If str is nil or an empty string, there is no role set,
|
||||
* and we treat this as an Editor since the role is unrestricted.
|
||||
*/
|
||||
if ([str length] == 0 || [str isEqualToString: @"Editor"])
|
||||
{
|
||||
if (app != 0)
|
||||
{
|
||||
*app = appName;
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
if ([str isEqualToString: @"Viewer"])
|
||||
{
|
||||
if (app != 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue