diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-06-27 09:11:17 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-06-27 09:11:17 +0000 |
commit | c92a1ef7ad770374b2c3912fd591ee39d3ef130e (patch) | |
tree | 843452032a3c9ff7aed3562d652607109ba00c09 /Source/SPDatabaseDocument.m | |
parent | 0810ab9add13a0b3d08e720b09ec50018931dc42 (diff) | |
download | sequelpro-c92a1ef7ad770374b2c3912fd591ee39d3ef130e.tar.gz sequelpro-c92a1ef7ad770374b2c3912fd591ee39d3ef130e.tar.bz2 sequelpro-c92a1ef7ad770374b2c3912fd591ee39d3ef130e.zip |
• added 'spfs' as allowed extension for open panel
• avoid adding of in bundle saved spf files to recent files
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 820057ff..781df933 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -506,8 +506,10 @@ [spfDocData setObject:[NSNumber numberWithBool:YES] forKey:@"include_session"]; } - [self setFileURL:[NSURL fileURLWithPath:path]]; - [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL fileURLWithPath:path]]; + if(![self isSaveInBundle]) { + [self setFileURL:[NSURL fileURLWithPath:path]]; + [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL fileURLWithPath:path]]; + } if([spf objectForKey:SPQueryFavorites]) [spfPreferences setObject:[spf objectForKey:SPQueryFavorites] forKey:SPQueryFavorites]; |