Do not call openFile: if only one file is supplied, as noted in 10.3 release notes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35357 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2012-08-07 16:10:27 +00:00
parent 6dc25f660a
commit b4be94c241
2 changed files with 7 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2012-08-06 Riccardo Mottola <rm@gnu.org>
* Source/GSServicesManager.m
Do not call openFile: if only one file is supplied, as noted in 10.3 release notes.
(Thanks to Wolfgang for looking it up)
2012-08-06 Riccardo Mottola <rm@gnu.org> 2012-08-06 Riccardo Mottola <rm@gnu.org>
* Source/NSApplication.m * Source/NSApplication.m

View file

@ -596,11 +596,7 @@ static NSString *disabledName = @".GNUstepDisabled";
{ {
id del = [NSApp delegate]; id del = [NSApp delegate];
if ([files count] == 1) if ([del respondsToSelector: _cmd])
{
[self application: theApp openFile: [files objectAtIndex:0]];
}
else if ([del respondsToSelector: _cmd])
{ {
[del application: theApp openFiles: files]; [del application: theApp openFiles: files];
} }