* Source/NSDocumentController.m (-_openRecentDocument:): Use most

current method to display document.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33348 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-06-19 10:55:16 +00:00
parent 52aee6a0ee
commit b6fab5861c
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-06-19 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSDocumentController.m (-_openRecentDocument:): Use most
current method to display document.
2011-06-19 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSView.m (-setBounds:, -setBoundsSize:): Rewrite of this

View file

@ -1709,6 +1709,7 @@ static NSString *processName = nil;
// action to open recent document by tag index
NSURL *url;
int idx = [sender tag];
NSError *err = nil;
if (idx < 0 || idx >= [_recent_documents count])
{
@ -1730,7 +1731,10 @@ static NSString *processName = nil;
return;
}
}
[self openDocumentWithContentsOfURL: url display: YES];
[self openDocumentWithContentsOfURL: url display: YES error: &err];
if (err)
[self presentError: err];
}
@end