From b4be94c241c8f8fc42a2ee6fb836e5cbefad626c Mon Sep 17 00:00:00 2001 From: rmottola Date: Tue, 7 Aug 2012 16:10:27 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ Source/GSServicesManager.m | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 73acfb533..c37c6d0df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-08-06 Riccardo Mottola + + * 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 * Source/NSApplication.m diff --git a/Source/GSServicesManager.m b/Source/GSServicesManager.m index ef408e98d..b83d37f22 100644 --- a/Source/GSServicesManager.m +++ b/Source/GSServicesManager.m @@ -596,11 +596,7 @@ static NSString *disabledName = @".GNUstepDisabled"; { id del = [NSApp delegate]; - if ([files count] == 1) - { - [self application: theApp openFile: [files objectAtIndex:0]]; - } - else if ([del respondsToSelector: _cmd]) + if ([del respondsToSelector: _cmd]) { [del application: theApp openFiles: files]; }