mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 06:50:38 +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
|
@ -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…
Add table
Add a link
Reference in a new issue