Revision: 7125
http://skim-app.svn.sourceforge.net/skim-app/?rev=7125&view=rev
Author: hofman
Date: 2011-02-22 11:21:01 +0000 (Tue, 22 Feb 2011)
Log Message:
-----------
check for existing file when opening setup
Modified Paths:
--------------
trunk/SKDocumentController.m
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2011-02-22 10:46:37 UTC (rev 7124)
+++ trunk/SKDocumentController.m 2011-02-22 11:21:01 UTC (rev 7125)
@@ -310,7 +310,7 @@
NSURL *fileURL = [[BDAlias aliasWithData:[setup
objectForKey:SKDocumentSetupAliasKey]] fileURL];
if(fileURL == nil && [setup objectForKey:SKDocumentSetupFileNameKey])
fileURL = [NSURL fileURLWithPath:[setup
objectForKey:SKDocumentSetupFileNameKey]];
- if(fileURL && NO == [[NSFileManager defaultManager]
isTrashedFileAtURL:fileURL]) {
+ if(fileURL && [[NSFileManager defaultManager] fileExistsAtPath:[fileURL
path]] && NO == [[NSFileManager defaultManager] isTrashedFileAtURL:fileURL]) {
if (document = [self documentForURL:fileURL]) {
// the document was already open, don't call makeWindowControllers
because that adds new empty windows
[document applySetup:setup];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit