aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFavoritesPreferencePane.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-02-08 01:42:21 +0000
committerrowanbeentje <rowan@beent.je>2012-02-08 01:42:21 +0000
commit700d4e71f39e7e10f6838543f8f9f2fda81a8eba (patch)
tree7f3e75b6842ceaa46dee26842c4e8bc7c4de35f2 /Source/SPFavoritesPreferencePane.m
parent36c061403637d5fefc1473ac3b668e54b1341871 (diff)
downloadsequelpro-700d4e71f39e7e10f6838543f8f9f2fda81a8eba.tar.gz
sequelpro-700d4e71f39e7e10f6838543f8f9f2fda81a8eba.tar.bz2
sequelpro-700d4e71f39e7e10f6838543f8f9f2fda81a8eba.zip
- Cleanup: improve compatibility with 10.7 SDK to reduce compiler warnings
Diffstat (limited to 'Source/SPFavoritesPreferencePane.m')
-rw-r--r--Source/SPFavoritesPreferencePane.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPFavoritesPreferencePane.m b/Source/SPFavoritesPreferencePane.m
index 4f640f11..159e8687 100644
--- a/Source/SPFavoritesPreferencePane.m
+++ b/Source/SPFavoritesPreferencePane.m
@@ -647,7 +647,7 @@
*/
- (void)chooseKeyLocationSheetDidEnd:(NSOpenPanel *)openPanel returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
{
- NSString *abbreviatedFileName = [[openPanel filename] stringByAbbreviatingWithTildeInPath];
+ NSString *abbreviatedFileName = [[[openPanel URL] path] stringByAbbreviatingWithTildeInPath];
// SSH key file selection
if (contextInfo == sshSSHKeyButton) {