mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 11:40:47 +00:00
Do not attempt to open an untitled document upon launching a document
based application that does not define an editor type. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30535 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bdd7d8d739
commit
8b3c88167f
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-06-01 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSApplication.m (-finishLaunching): Do not attempt to
|
||||
open an untitled document in a document based application that
|
||||
does not define an editor type.
|
||||
|
||||
2010-06-01 Quentin Mathe <quentin.mathe@gmail.com>
|
||||
|
||||
Fixed many drawing issues (many ones being related to the flipping).
|
||||
|
|
|
@ -1145,7 +1145,7 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
|
|||
[_delegate applicationOpenUntitledFile: self];
|
||||
}
|
||||
}
|
||||
else if ([[sdc documentClassNames] count] > 0)
|
||||
else if ([[sdc documentClassNames] count] > 0 && [sdc defaultType] != nil)
|
||||
{
|
||||
NSError *err = nil;
|
||||
|
||||
|
|
Loading…
Reference in a new issue