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:
Wolfgang Lux 2010-06-01 21:36:51 +00:00
parent bdd7d8d739
commit 8b3c88167f
2 changed files with 7 additions and 1 deletions

View file

@ -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).

View file

@ -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;