Minor fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16409 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2003-04-10 05:36:19 +00:00
parent 77261b37c3
commit b2c12040e5
2 changed files with 6 additions and 1 deletions

View file

@ -406,7 +406,6 @@ static NSString *disabledName = @".GNUstepDisabled";
id del = [NSApp delegate];
BOOL result = NO;
[NSApp activateIgnoringOtherApps: YES];
if ([del respondsToSelector: _cmd])
{
result = [del application: theApp openFile: file];
@ -414,6 +413,7 @@ static NSString *disabledName = @".GNUstepDisabled";
else if ([[NSDocumentController sharedDocumentController]
openDocumentWithContentsOfFile: file display: YES] != nil)
{
[NSApp activateIgnoringOtherApps: YES];
result = YES;
}
return result;