From c92a1ef7ad770374b2c3912fd591ee39d3ef130e Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sun, 27 Jun 2010 09:11:17 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20'spfs'=20as=20allowed=20extension?= =?UTF-8?q?=20for=20open=20panel=20=E2=80=A2=20avoid=20adding=20of=20in=20?= =?UTF-8?q?bundle=20saved=20spf=20files=20to=20recent=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPDatabaseDocument.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/SPDatabaseDocument.m') 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]; -- cgit v1.2.3