Revision: 27265
          http://sourceforge.net/p/bibdesk/svn/27265
Author:   hofman
Date:     2022-03-04 15:10:22 +0000 (Fri, 04 Mar 2022)
Log Message:
-----------
Clear pasteboard right before writing items

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

Modified: trunk/bibdesk/BDSKItemPasteboardHelper.m
===================================================================
--- trunk/bibdesk/BDSKItemPasteboardHelper.m    2022-03-04 15:09:29 UTC (rev 
27264)
+++ trunk/bibdesk/BDSKItemPasteboardHelper.m    2022-03-04 15:10:22 UTC (rev 
27265)
@@ -92,8 +92,6 @@
 
 - (void)writeItems:(NSArray *)items textRepresentation:(id)text 
forDragCopyType:(BDSKDragCopyType)dragCopyType toPasteboard:(NSPasteboard 
*)pboard {
     
-    [pboard clearContents];
-    
     BDSKASSERT([promisedPboardTypes objectForKey:[pboard name]] == nil);
     
     NSMutableArray *types = [NSMutableArray 
arrayWithObjects:BDSKPasteboardTypePublications, nil];
@@ -115,6 +113,8 @@
     
     [self setPromisedTypes:types items:items dragCopyType:dragCopyType 
forPasteboard:pboard];
     
+    [pboard clearContents];
+    
     if (text != nil)
         [pboard writeObjects:[NSArray arrayWithObjects:text, nil]];
     else if (dragCopyType == BDSKDragCopyURL)

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