Revision: 21858
          http://sourceforge.net/p/bibdesk/svn/21858
Author:   hofman
Date:     2018-02-09 22:05:40 +0000 (Fri, 09 Feb 2018)
Log Message:
-----------
update displayed items when selected external group has it publications cleared

Modified Paths:
--------------
    trunk/bibdesk/BDSKSharedGroup.m
    trunk/bibdesk/BibDocument_Groups.m

Modified: trunk/bibdesk/BDSKSharedGroup.m
===================================================================
--- trunk/bibdesk/BDSKSharedGroup.m     2018-02-09 17:46:00 UTC (rev 21857)
+++ trunk/bibdesk/BDSKSharedGroup.m     2018-02-09 22:05:40 UTC (rev 21858)
@@ -204,9 +204,6 @@
     // we set the macroResolver so we know the fields of this item may refer 
to it, so we can prevent scripting from adding this to the wrong document
     [pubs setValue:macroResolver forKey:@"macroResolver"];
     
-    if (pubs == nil && [client failedDownload] == NO)
-        pubs = [NSArray array];
-    
     [[self macroResolver] setMacroDefinitions:macros];
     [self setPublications:pubs];
 }

Modified: trunk/bibdesk/BibDocument_Groups.m
===================================================================
--- trunk/bibdesk/BibDocument_Groups.m  2018-02-09 17:46:00 UTC (rev 21857)
+++ trunk/bibdesk/BibDocument_Groups.m  2018-02-09 22:05:40 UTC (rev 21858)
@@ -388,7 +388,7 @@
         } else {
             [groupOutlineView reloadData];
             if ([[self selectedGroups] containsObject:group]) {
-                if (isWeb || succeeded)
+                if (isWeb || succeeded || ([group publicationsWithoutUpdating] 
== nil && [groupedPublications count]))
                     [self displaySelectedGroups];
                 else
                     [self updateStatus];

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to