aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-07 11:26:01 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-07 11:26:01 +0000
commit0659cbdf1ef8c6cb4f0ce9e68a5982cdf5f0816c (patch)
treeaa7494162cba166e1a590a694b7c9d3df0745c49
parent44cf4df2bbe2e9208faef346abc0a64e62432592 (diff)
downloadsequelpro-0659cbdf1ef8c6cb4f0ce9e68a5982cdf5f0816c.tar.gz
sequelpro-0659cbdf1ef8c6cb4f0ce9e68a5982cdf5f0816c.tar.bz2
sequelpro-0659cbdf1ef8c6cb4f0ce9e68a5982cdf5f0816c.zip
• aborting editing of the bundle name outlineView cell before removing the selected bundle in order to avoid a crash
-rw-r--r--Source/SPBundleEditorController.m3
1 files changed, 3 insertions, 0 deletions
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")