Revision: 18489
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18489&view=rev
Author:   hofman
Date:     2012-02-05 13:31:39 +0000 (Sun, 05 Feb 2012)
Log Message:
-----------
Add new errors to editor if necessary

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

Modified: trunk/bibdesk/BDSKErrorObjectController.m
===================================================================
--- trunk/bibdesk/BDSKErrorObjectController.m   2012-02-05 07:36:07 UTC (rev 
18488)
+++ trunk/bibdesk/BDSKErrorObjectController.m   2012-02-05 13:31:39 UTC (rev 
18489)
@@ -361,7 +361,7 @@
     if([currentErrors count]){
         if(document != nil){ // this should happen only for temporary author 
objects, which we ignore as they don't belong to any document
             BDSKErrorEditor *editor = [self editorForDocument:document 
pasteDragData:data];
-            [editor setErrors:currentErrors];
+            [editor setErrors:[editor errors] ? [[editor errors] 
arrayByAddingObjectsFromArray:currentErrors] : currentErrors];
             [currentErrors setValue:editor forKey:@"editor"];
             [[self mutableArrayValueForKey:@"errors"] 
addObjectsFromArray:currentErrors];
             if([self isWindowVisible] == NO && (handledNonIgnorableError || 
[[NSUserDefaults standardUserDefaults] boolForKey:BDSKShowWarningsKey]))

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


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
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-dev2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to