aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-07 11:37:09 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-07 11:37:09 +0000
commit3e89faa2a094ad0b996757fc8c3fc90d332b625f (patch)
treed318825cc014b6cb57dd6843148c5cdc8bd2b258 /Source
parent0659cbdf1ef8c6cb4f0ce9e68a5982cdf5f0816c (diff)
downloadsequelpro-3e89faa2a094ad0b996757fc8c3fc90d332b625f.tar.gz
sequelpro-3e89faa2a094ad0b996757fc8c3fc90d332b625f.tar.bz2
sequelpro-3e89faa2a094ad0b996757fc8c3fc90d332b625f.zip
• re-init the Bundle tree after not saving (close) the Bundle Editor window in order to remove all not stored data
Diffstat (limited to 'Source')
-rw-r--r--Source/SPBundleEditorController.h1
-rw-r--r--Source/SPBundleEditorController.m6
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPBundleEditorController.h b/Source/SPBundleEditorController.h
index 7cc36de4..ff475bb0 100644
--- a/Source/SPBundleEditorController.h
+++ b/Source/SPBundleEditorController.h
@@ -123,6 +123,7 @@
- (IBAction)saveAndCloseWindow:(id)sender;
- (IBAction)reloadBundles:(id)sender;
- (IBAction)metaButtonChanged:(id)sender;
+- (IBAction)performClose:(id)sender;
- (BOOL)saveBundle:(NSDictionary*)bundle atPath:(NSString*)aPath;
- (BOOL)cancelRowEditing;
diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m
index 2d9da4b0..8fbf8e94 100644
--- a/Source/SPBundleEditorController.m
+++ b/Source/SPBundleEditorController.m
@@ -748,6 +748,12 @@
}
+- (IBAction)performClose:(id)sender
+{
+ [self _initTree];
+ [self close];
+}
+
/**
* Save all touched bundles to disk and close the Bundle Editor window
*/