2005-01-18 15:46 Alexander Malmberg <alexander@malmberg.org>

* Source/NSApplication.m (-finishLaunching): Don't attempt to open
	an untitled file if we were autolaunched.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20577 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2005-01-18 14:42:22 +00:00
parent 45e9460fd6
commit 3a6de05e8b
2 changed files with 23 additions and 16 deletions

View file

@ -1,3 +1,8 @@
2005-01-18 15:46 Alexander Malmberg <alexander@malmberg.org>
* Source/NSApplication.m (-finishLaunching): Don't attempt to open
an untitled file if we were autolaunched.
2005-01-18 14:16 Alexander Malmberg <alexander@malmberg.org>
* Source/NSAffineTransform.m (pi): Correct the rounding.

View file

@ -926,10 +926,12 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
[_listener application: self printFile: filePath];
[self terminate: self];
}
else if ([_delegate respondsToSelector:
else if (![defs boolForKey: @"autolaunch"]
&& [_delegate respondsToSelector:
@selector(applicationShouldOpenUntitledFile:)]
&& ([_delegate applicationShouldOpenUntitledFile: self] == YES)
&& [_delegate respondsToSelector: @selector(applicationOpenUntitledFile:)])
&& ([_delegate applicationShouldOpenUntitledFile: self])
&& [_delegate respondsToSelector:
@selector(applicationOpenUntitledFile:)])
{
[_delegate applicationOpenUntitledFile: self];
}