aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferenceController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPPreferenceController.m')
-rw-r--r--Source/SPPreferenceController.m18
1 files changed, 11 insertions, 7 deletions
diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m
index 42503649..c1f3877a 100644
--- a/Source/SPPreferenceController.m
+++ b/Source/SPPreferenceController.m
@@ -704,13 +704,17 @@
filePath = [[favoritesController valueForKeyPath:@"selection.sshKeyLocation"] lastPathComponent];
directoryPath = [[favoritesController valueForKeyPath:@"selection.sshKeyLocation"] stringByDeletingLastPathComponent];
}
- [[NSOpenPanel openPanel] beginSheetForDirectory:directoryPath
- file:filePath
- types:[NSArray arrayWithObjects:@"pem", @"", nil]
- modalForWindow:preferencesWindow
- modalDelegate:self
- didEndSelector:@selector(chooseSSHKeySheetDidEnd:returnCode:contextInfo:)
- contextInfo:nil];
+
+
+ NSOpenPanel *openPanel = [NSOpenPanel openPanel];
+ [openPanel setAccessoryView:sshKeyLocationHelp];
+ [openPanel beginSheetForDirectory:directoryPath
+ file:filePath
+ types:[NSArray arrayWithObjects:@"pem", @"", nil]
+ modalForWindow:preferencesWindow
+ modalDelegate:self
+ didEndSelector:@selector(chooseSSHKeySheetDidEnd:returnCode:contextInfo:)
+ contextInfo:nil];
}
/**