From 0659cbdf1ef8c6cb4f0ce9e68a5982cdf5f0816c Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 7 Dec 2010 11:26:01 +0000 Subject: =?UTF-8?q?=E2=80=A2=20aborting=20editing=20of=20the=20bundle=20na?= =?UTF-8?q?me=20outlineView=20cell=20before=20removing=20the=20selected=20?= =?UTF-8?q?bundle=20in=20order=20to=20avoid=20a=20crash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPBundleEditorController.m | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source') diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m index 2eb58edc..2d9da4b0 100644 --- a/Source/SPBundleEditorController.m +++ b/Source/SPBundleEditorController.m @@ -662,6 +662,9 @@ */ - (IBAction)removeCommandBundle:(id)sender { + + [commandsOutlineView abortEditing]; + NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Remove selected Bundle?", @"remove selected bundle message") defaultButton:NSLocalizedString(@"Remove", @"remove button") alternateButton:NSLocalizedString(@"Cancel", @"cancel button") -- cgit v1.2.3