mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 15:31:56 +00:00
* 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:
parent
52aee6a0ee
commit
b6fab5861c
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
2011-06-19 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSView.m (-setBounds:, -setBoundsSize:): Rewrite of this
|
* Source/NSView.m (-setBounds:, -setBoundsSize:): Rewrite of this
|
||||||
|
|
|
@ -1709,6 +1709,7 @@ static NSString *processName = nil;
|
||||||
// action to open recent document by tag index
|
// action to open recent document by tag index
|
||||||
NSURL *url;
|
NSURL *url;
|
||||||
int idx = [sender tag];
|
int idx = [sender tag];
|
||||||
|
NSError *err = nil;
|
||||||
|
|
||||||
if (idx < 0 || idx >= [_recent_documents count])
|
if (idx < 0 || idx >= [_recent_documents count])
|
||||||
{
|
{
|
||||||
|
@ -1730,7 +1731,10 @@ static NSString *processName = nil;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[self openDocumentWithContentsOfURL: url display: YES];
|
|
||||||
|
[self openDocumentWithContentsOfURL: url display: YES error: &err];
|
||||||
|
if (err)
|
||||||
|
[self presentError: err];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue