mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Allow newDocument: on NSDocumentController only when there is a default
type. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27667 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d755437127
commit
c6b4d75935
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-01-24 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSDocumentController.m (-validateUserInterfaceItem:):
|
||||
Show newDocument: only if there is a default type.
|
||||
|
||||
2009-01-23 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSWindow.m: ignore invalid rects when checking
|
||||
|
|
|
@ -1121,6 +1121,10 @@ static BOOL _shouldClose = YES;
|
|||
{
|
||||
return [self hasEditedDocuments];
|
||||
}
|
||||
if (sel_eq([anItem action], @selector(newDocument:)))
|
||||
{
|
||||
return ([self defaultType] != nil);
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue