diff options
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index c5119bb7..f0bfecfe 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -885,10 +885,12 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, { NSSavePanel *savePanel = [NSSavePanel savePanel]; + NSString *fileName = [[self selectedFavoriteNodes] count] > 1 ? SPExportFavoritesFilename : [[[self selectedFavorite] objectForKey:SPFavoriteNameKey] stringByAppendingPathExtension:@"plist"]; + [savePanel setAccessoryView:exportPanelAccessoryView]; [savePanel beginSheetForDirectory:nil - file:SPExportFavoritesFilename + file:fileName modalForWindow:[dbDocument parentWindow] modalDelegate:self didEndSelector:@selector(importExportFavoritesSheetDidEnd:returnCode:contextInfo:) |