Revision: 11522
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11522&view=rev
Author: hofman
Date: 2007-11-09 18:08:58 -0800 (Fri, 09 Nov 2007)
Log Message:
-----------
Don't undo autofile for files that were not moved. Also don't execute
scripthook for those.
Modified Paths:
--------------
trunk/bibdesk/BDSKFiler.m
Modified: trunk/bibdesk/BDSKFiler.m
===================================================================
--- trunk/bibdesk/BDSKFiler.m 2007-11-10 01:35:24 UTC (rev 11521)
+++ trunk/bibdesk/BDSKFiler.m 2007-11-10 02:08:58 UTC (rev 11522)
@@ -241,15 +241,17 @@
object:paper
userInfo:notifInfo];
}
- if(scriptHook){
- [papers addObject:paper];
- [oldValues addObject:oldValue];
- [newValues addObject:newValue];
- }
- // switch them as this is used in undo
- [info setObject:path forKey:@"newPath"];
- [info setObject:newPath forKey:@"oldPath"];
- [fileInfoDicts addObject:info];
+ if(NO == [path isEqualToString:newPath]){
+ if(scriptHook){
+ [papers addObject:paper];
+ [oldValues addObject:oldValue];
+ [newValues addObject:newValue];
+ }
+ // switch them as this is used in undo
+ [info setObject:path forKey:@"newPath"];
+ [info setObject:newPath forKey:@"oldPath"];
+ [fileInfoDicts addObject:info];
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit