diff options
author | rowanbeentje <rowan@beent.je> | 2012-02-08 01:42:21 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-02-08 01:42:21 +0000 |
commit | 700d4e71f39e7e10f6838543f8f9f2fda81a8eba (patch) | |
tree | 7f3e75b6842ceaa46dee26842c4e8bc7c4de35f2 /Source/SPAppController.m | |
parent | 36c061403637d5fefc1473ac3b668e54b1341871 (diff) | |
download | sequelpro-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/SPAppController.m')
-rw-r--r-- | Source/SPAppController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 271dd661..4f4bab2c 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -171,7 +171,7 @@ YY_BUFFER_STATE yy_scan_string (const char *); - (void)panelSelectionDidChange:(id)sender { if ([sender isKindOfClass:[NSOpenPanel class]]) { - if([[[[sender filename] pathExtension] lowercaseString] isEqualToString:SPFileExtensionSQL]) { + if([[[[[sender URL] path] pathExtension] lowercaseString] isEqualToString:SPFileExtensionSQL]) { [encodingPopUp setEnabled:YES]; } else { [encodingPopUp setEnabled:NO]; |