aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-06-23 13:31:57 +0200
committerMax <post@wickenrode.com>2015-06-23 13:31:57 +0200
commit95d29af3258ce1b4fa15db6bd1c42ae62c8559f3 (patch)
tree9100aa83ad2d9fc65b135e2cadd6aada51ce736e
parent22609209e5e4b513500e276b07d5dfe591abc87e (diff)
downloadsequelpro-95d29af3258ce1b4fa15db6bd1c42ae62c8559f3.tar.gz
sequelpro-95d29af3258ce1b4fa15db6bd1c42ae62c8559f3.tar.bz2
sequelpro-95d29af3258ce1b4fa15db6bd1c42ae62c8559f3.zip
Fix a rare exception when opening a session via "Open Recent"
-rw-r--r--Source/SPAppController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 9b658dc4..9ff2cad0 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -491,7 +491,7 @@
// Set global session properties
[SPAppDelegate setSpfSessionDocData:spfsDocData];
- [SPAppDelegate setSessionURL:[NSURL fileURLWithPath:filePath]];
+ [SPAppDelegate setSessionURL:filePath];
// Loop through each defined window in reversed order to reconstruct the last active window
for (NSDictionary *window in [[[spfs objectForKey:@"windows"] reverseObjectEnumerator] allObjects])