aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDelegate.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-08-01 21:54:27 +0000
committerstuconnolly <stuart02@gmail.com>2011-08-01 21:54:27 +0000
commite70486eb1503cad882a0d5e452fef3b2fecf6629 (patch)
treef98c83cfd6a015356bbab22ba956c9bec6f67a1f /Source/SPConnectionControllerDelegate.m
parentf3e65efba3f76cb2149fd8427af9463032d3c45d (diff)
downloadsequelpro-e70486eb1503cad882a0d5e452fef3b2fecf6629.tar.gz
sequelpro-e70486eb1503cad882a0d5e452fef3b2fecf6629.tar.bz2
sequelpro-e70486eb1503cad882a0d5e452fef3b2fecf6629.zip
Work on importing favorites.
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r--Source/SPConnectionControllerDelegate.m15
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m
index 03dbd930..63f58ace 100644
--- a/Source/SPConnectionControllerDelegate.m
+++ b/Source/SPConnectionControllerDelegate.m
@@ -37,7 +37,7 @@
static NSString *SPDatabaseImage = @"database-small";
-@interface SPConnectionController (PrivateAPI)
+@interface SPConnectionController ()
- (void)_checkHost;
- (void)_favoriteTypeDidChange;
@@ -508,4 +508,17 @@ static NSString *SPDatabaseImage = @"database-small";
}
}
+/**
+ * Called by the favorites importer when the import completes.
+ */
+- (void)favoritesImportCompletedWithError:(NSError *)error
+{
+ if (error) {
+ [[NSAlert alertWithError:error] beginSheetModalForWindow:[dbDocument parentWindow]
+ modalDelegate:self
+ didEndSelector:NULL
+ contextInfo:NULL];
+ }
+}
+
@end