diff options
author | stuconnolly <stuart02@gmail.com> | 2011-08-01 21:54:27 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-08-01 21:54:27 +0000 |
commit | e70486eb1503cad882a0d5e452fef3b2fecf6629 (patch) | |
tree | f98c83cfd6a015356bbab22ba956c9bec6f67a1f /Source/SPConnectionControllerDelegate.m | |
parent | f3e65efba3f76cb2149fd8427af9463032d3c45d (diff) | |
download | sequelpro-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.m | 15 |
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 |