aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.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/SPConnectionController.m
parentf3e65efba3f76cb2149fd8427af9463032d3c45d (diff)
downloadsequelpro-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.m10
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];
}
}