aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDelegate.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-06-12 13:56:11 +0000
committerstuconnolly <stuart02@gmail.com>2011-06-12 13:56:11 +0000
commitf3e65efba3f76cb2149fd8427af9463032d3c45d (patch)
tree0e8ebaadd24c8e206bca1f8b2a30ef6543976391 /Source/SPConnectionControllerDelegate.m
parentc1de88ac62381469ad01975c0f28e5847a65edb9 (diff)
downloadsequelpro-f3e65efba3f76cb2149fd8427af9463032d3c45d.tar.gz
sequelpro-f3e65efba3f76cb2149fd8427af9463032d3c45d.tar.bz2
sequelpro-f3e65efba3f76cb2149fd8427af9463032d3c45d.zip
Add the ability to export favorites.
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r--Source/SPConnectionControllerDelegate.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m
index b86e716f..03dbd930 100644
--- a/Source/SPConnectionControllerDelegate.m
+++ b/Source/SPConnectionControllerDelegate.m
@@ -492,4 +492,20 @@ static NSString *SPDatabaseImage = @"database-small";
return YES;
}
+#pragma mark -
+#pragma mark Favorites import/export delegate methods
+
+/**
+ * Called by the favorites exporter when the export completes.
+ */
+- (void)favoritesExportCompletedWithError:(NSError *)error
+{
+ if (error) {
+ [[NSAlert alertWithError:error] beginSheetModalForWindow:[dbDocument parentWindow]
+ modalDelegate:self
+ didEndSelector:NULL
+ contextInfo:NULL];
+ }
+}
+
@end