Revision: 18423
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18423&view=rev
Author:   hofman
Date:     2012-01-18 18:33:07 +0000 (Wed, 18 Jan 2012)
Log Message:
-----------
check for autofile before ignoring non-moves

Modified Paths:
--------------
    trunk/bibdesk/BDSKFiler.m

Modified: trunk/bibdesk/BDSKFiler.m
===================================================================
--- trunk/bibdesk/BDSKFiler.m   2012-01-18 18:17:17 UTC (rev 18422)
+++ trunk/bibdesk/BDSKFiler.m   2012-01-18 18:33:07 UTC (rev 18423)
@@ -161,7 +161,7 @@
                        [progressIndicator displayIfNeeded];
                }
                        
-               if ([NSString isEmptyString:oldPath] || [NSString 
isEmptyString:newPath] || [oldPath isEqualToString:newPath]) {
+               if ([NSString isEmptyString:oldPath]) {
             [pub removeFileToBeFiled:file];
                        continue;
         }
@@ -180,6 +180,10 @@
             [info setValue:newPath forKey:BDSKFilerNewPathKey];
             [errorInfoDicts addObject:info];
             
+        } else if ([NSString isEmptyString:newPath] || [oldPath 
isEqualToString:newPath]) {
+            
+            [pub removeFileToBeFiled:file];
+            
         } else {
             
             [[BDSKScriptHookManager sharedManager] 
runScriptHookWithName:BDSKWillAutoFileScriptHookName 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to