Revision: 27235
          http://sourceforge.net/p/bibdesk/svn/27235
Author:   hofman
Date:     2022-01-17 15:27:55 +0000 (Mon, 17 Jan 2022)
Log Message:
-----------
Make sure key specifier is set to nil when setting receivers specifier

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

Modified: trunk/bibdesk/BDSKPublicationCommand.m
===================================================================
--- trunk/bibdesk/BDSKPublicationCommand.m      2022-01-17 10:36:35 UTC (rev 
27234)
+++ trunk/bibdesk/BDSKPublicationCommand.m      2022-01-17 15:27:55 UTC (rev 
27235)
@@ -50,8 +50,7 @@
 
 - (void)setReceiversSpecifier:(NSScriptObjectSpecifier *)receiversSpecifier {
     if ([[receiversSpecifier key] isEqualToString:@""]) {
-        // this is an 'item i of linked files' specifier
-        // -indicesOfObjectsByEvaluatingWithContainer:count: does not work here
+        // this is an 'item i of <element>' specifier
         // transform to an index specifier for the element
         if ([receiversSpecifier isKindOfClass:[NSIndexSpecifier class]] &&
             [[receiversSpecifier containerSpecifier] 
isKindOfClass:[NSPropertySpecifier class]]) {
@@ -62,6 +61,7 @@
             [self setScriptErrorString:@"Do not understand receiver 
specifier."];
         }
     }
+    BDSKDESTROY(keySpecifier);
     if ([[[receiversSpecifier keyClassDescription] className] 
isEqualToString:@"publication"]) {
         [super setReceiversSpecifier:receiversSpecifier];
     } else {

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to