From db47d8fb85de14307038cb2f01cb928f5e057881 Mon Sep 17 00:00:00 2001 From: ggsato Date: Thu, 28 Jun 2012 12:01:37 +0900 Subject: [PATCH] fixed needsUntitled evaluation --- AppKit/CPApplication.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPApplication.j b/AppKit/CPApplication.j index 15ad65916b..91dd37b808 100644 --- a/AppKit/CPApplication.j +++ b/AppKit/CPApplication.j @@ -254,7 +254,7 @@ CPRunContinuesResponse = -1002; count = [URLStrings count]; for (; index < count; ++index) - needsUntitled = ![self _openURL:[CPURL URLWithString:URLStrings[index]]] || needsUntitled; + needsUntitled = ![self _openURL:[CPURL URLWithString:URLStrings[index]]] && needsUntitled; if (needsUntitled && [_delegate respondsToSelector:@selector(applicationShouldOpenUntitledFile:)]) needsUntitled = [_delegate applicationShouldOpenUntitledFile:self];