Revision: 3293
http://skim-app.svn.sourceforge.net/skim-app/?rev=3293&view=rev
Author: hofman
Date: 2007-12-01 03:49:04 -0800 (Sat, 01 Dec 2007)
Log Message:
-----------
Also remove PDF document reference after reverting. Try to unlock locked
document when reverting.
Modified Paths:
--------------
trunk/SKDocument.m
Modified: trunk/SKDocument.m
===================================================================
--- trunk/SKDocument.m 2007-12-01 11:23:00 UTC (rev 3292)
+++ trunk/SKDocument.m 2007-12-01 11:49:04 UTC (rev 3293)
@@ -153,10 +153,10 @@
}
[mainController setPdfDocument:pdfDocument];
+ [self setPDFDoc:nil];
[mainController setAnnotationsFromDictionaries:noteDicts undoable:NO];
[self setNoteDicts:nil];
- [self setPDFDoc:nil];
[[NSUserDefaultsController sharedUserDefaultsController] addObserver:self
forKey:SKAutoCheckFileUpdateKey];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleWindowWillCloseNotification:)
@@ -478,7 +478,10 @@
BOOL success = [super revertToContentsOfURL:absoluteURL ofType:typeName
error:outError];
if (success) {
+ if ([pdfDocument isLocked])
+ [self tryToUnlockDocument:pdfDocument];
[[self mainWindowController] setPdfDocument:pdfDocument];
+ [self setPDFDoc:nil];
if (noteDicts) {
[[self mainWindowController]
setAnnotationsFromDictionaries:noteDicts undoable:NO];
[self setNoteDicts:nil];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit