Check only shouldCreateUI before callin makeWindowControllers.

This is the behaviour reported for Cocoa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27509 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-01-04 20:20:52 +00:00
parent e6f1b26e00
commit 9cd9df813d
2 changed files with 18 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2009-01-04 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSDocumentController.m: Check only shouldCreateUI before
callin makeWindowControllers. This is the behaviour reported for Cocoa.
2009-01-03 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSWindowDecorationView.m: Adopt the window size when

View file

@ -461,10 +461,13 @@ static NSDictionary *TypeInfoForHumanReadableName (NSArray *types, NSString *typ
}
[self addDocument: document];
if (display && [self shouldCreateUI])
if ([self shouldCreateUI])
{
[document makeWindowControllers];
[document showWindows];
if (display)
{
[document showWindows];
}
}
return document;
@ -493,7 +496,7 @@ static NSDictionary *TypeInfoForHumanReadableName (NSArray *types, NSString *typ
[self addDocument: document];
if (display && [self shouldCreateUI])
if ([self shouldCreateUI])
{
[document makeWindowControllers];
}
@ -532,7 +535,7 @@ static NSDictionary *TypeInfoForHumanReadableName (NSArray *types, NSString *typ
[self addDocument: document];
if (display && [self shouldCreateUI])
if ([self shouldCreateUI])
{
[document makeWindowControllers];
}
@ -571,10 +574,13 @@ static NSDictionary *TypeInfoForHumanReadableName (NSArray *types, NSString *typ
}
[self addDocument: document];
if (display && [self shouldCreateUI])
if ([self shouldCreateUI])
{
[document makeWindowControllers];
[document showWindows];
if (display)
{
[document showWindows];
}
}
return document;
@ -614,7 +620,7 @@ static NSDictionary *TypeInfoForHumanReadableName (NSArray *types, NSString *typ
[self addDocument: document];
if (display && [self shouldCreateUI])
if ([self shouldCreateUI])
{
[document makeWindowControllers];
}