Revision: 18396
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18396&view=rev
Author:   hofman
Date:     2012-01-12 12:48:23 +0000 (Thu, 12 Jan 2012)
Log Message:
-----------
only make filing files undoable when we did file any

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

Modified: trunk/bibdesk/BDSKFiler.m
===================================================================
--- trunk/bibdesk/BDSKFiler.m   2012-01-12 11:13:52 UTC (rev 18395)
+++ trunk/bibdesk/BDSKFiler.m   2012-01-12 12:48:23 UTC (rev 18396)
@@ -214,9 +214,8 @@
        if (numberOfPapers > 1)
                [[self window] orderOut:nil];
        
-       NSUndoManager *undoManager = [doc undoManager];
-       [[undoManager prepareWithInvocationTarget:self] 
-               movePapers:fileInfoDicts forField:field fromDocument:doc 
options:0];
+    if ([fileInfoDicts count])
+        [[[doc undoManager] prepareWithInvocationTarget:self] 
movePapers:fileInfoDicts forField:field fromDocument:doc options:0];
        
        if ([errorInfoDicts count] > 0) {
                BDSKFilerErrorController *errorController = 
[[[BDSKFilerErrorController alloc] initWithErrors:errorInfoDicts forField:field 
fromDocument:doc options:mask] autorelease];

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


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to