Revision: 7123
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7123&view=rev
Author:   hofman
Date:     2011-02-22 10:43:24 +0000 (Tue, 22 Feb 2011)

Log Message:
-----------
only start checking file updates when the window is loaded, otherwise we may 
end up with a zombie document in the file checker

Modified Paths:
--------------
    trunk/SKMainDocument.m

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2011-02-21 16:02:21 UTC (rev 7122)
+++ trunk/SKMainDocument.m      2011-02-22 10:43:24 UTC (rev 7123)
@@ -208,6 +208,9 @@
     
     [[self undoManager] enableUndoRegistration];
     
+    if ([self fileURL])
+        [fileUpdateChecker checkFileUpdatesIfNeeded];
+    
        [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(handleWindowWillCloseNotification:) 
                                                  
name:NSWindowWillCloseNotification object:[[self mainWindowController] window]];
 }
@@ -1314,7 +1317,7 @@
     [super setFileURL:absoluteURL];
     
     // if we're saving this will be called when saving has finished
-    if (isSaving == NO)
+    if (isSaving == NO && [mainWindowController isWindowLoaded])
         [fileUpdateChecker checkFileUpdatesIfNeeded];
     
     if ([absoluteURL isFileURL])


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

Reply via email to