aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-10-03 14:25:11 +0000
committerBibiko <bibiko@eva.mpg.de>2009-10-03 14:25:11 +0000
commit7abd1679730327d15a33cc516e84e0e368f53696 (patch)
tree00ce856fd91e5e853c9594a9a2af8f84a554c5c5 /Source
parent83b3a92c9d6b973214edd303a45de9181b141145 (diff)
downloadsequelpro-7abd1679730327d15a33cc516e84e0e368f53696.tar.gz
sequelpro-7abd1679730327d15a33cc516e84e0e368f53696.tar.bz2
sequelpro-7abd1679730327d15a33cc516e84e0e368f53696.zip
• fixed "Open Recent" for 10.6:
since 10.6 that list expects a clean file URL created via [NSURL fileURLWithPath:path] (having the suffix file://localhost/....) Note: should be tested for Leopard.
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 0eb24ece..2b710737 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -418,7 +418,7 @@
}
[self setFileURL:[NSURL URLWithString:[path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
- [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL URLWithString:[path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
+ [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL fileURLWithPath:path]];
if([spf objectForKey:@"queryFavorites"])
[spfPreferences setObject:[spf objectForKey:@"queryFavorites"] forKey:@"queryFavorites"];