From 034d8cf84a71691af7389cc79e719bd3bae7a8f3 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 6 Jan 2011 09:13:39 -0500 Subject: [PATCH] Don't use [connection attached] as a condition on which to validate the Stop item. --- Source/DebuggerController.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/DebuggerController.m b/Source/DebuggerController.m index 836efa7..efd037e 100644 --- a/Source/DebuggerController.m +++ b/Source/DebuggerController.m @@ -85,13 +85,14 @@ { SEL action = [anItem action]; - if (action == @selector(stepOut:)) + if (action == @selector(stepOut:)) { return ([connection isConnected] && [stackController.stack count] > 1); - else if (action == @selector(stepIn:) || action == @selector(stepOver:) || action == @selector(run:)) + } else if (action == @selector(stepIn:) || + action == @selector(stepOver:) || + action == @selector(run:) || + action == @selector(stop:)) { return [connection isConnected]; - else if (action == @selector(stop:)) - return [connection isConnected] && [connection attached]; - + } return [[self window] validateUserInterfaceItem:anItem]; } -- 2.43.5