diff --git a/ChangeLog b/ChangeLog index 33e19e831..d31da0aca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-06-19 Fred Kiefer + + * Source/NSDocumentController.m (-_openRecentDocument:): Use most + current method to display document. + 2011-06-19 Fred Kiefer * Source/NSView.m (-setBounds:, -setBoundsSize:): Rewrite of this diff --git a/Source/NSDocumentController.m b/Source/NSDocumentController.m index 3e03b7cb2..2e4a103a2 100644 --- a/Source/NSDocumentController.m +++ b/Source/NSDocumentController.m @@ -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