mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 14:31:55 +00:00
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:
parent
45e9460fd6
commit
3a6de05e8b
2 changed files with 23 additions and 16 deletions
|
@ -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.
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue