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/SPConnectionController.m | |
parent | f3e65efba3f76cb2149fd8427af9463032d3c45d (diff) | |
download | sequelpro-e70486eb1503cad882a0d5e452fef3b2fecf6629.tar.gz sequelpro-e70486eb1503cad882a0d5e452fef3b2fecf6629.tar.bz2 sequelpro-e70486eb1503cad882a0d5e452fef3b2fecf6629.zip |
Work on importing favorites.
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 6ed6e392..a5021206 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -1136,18 +1136,18 @@ static NSComparisonResult compareFavoritesUsingKey(id favorite1, id favorite2, v * Called when the user dismisses either the import of export favorites panels. */ - (void)importExportFavoritesSheetDidEnd:(NSOpenPanel *)panel returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo -{ - NSError *error = nil; - +{ if (contextInfo == SPExportFavorites) { SPFavoritesExporter *exporter = [[[SPFavoritesExporter alloc] init] autorelease]; [exporter setDelegate:self]; - [exporter writeFavorites:[self selectedFavoriteNodes] toFile:[panel filename] error:&error]; + [exporter writeFavorites:[self selectedFavoriteNodes] toFile:[panel filename]]; } else if (contextInfo == SPImportFavorites) { - //SPFavoritesImporter *importer = [[SPFavoritesImporter alloc] init]; + SPFavoritesImporter *importer = [[SPFavoritesImporter alloc] init]; + + [importer setDelegate:self]; } } |