Revision: 28964
          http://sourceforge.net/p/bibdesk/svn/28964
Author:   hofman
Date:     2024-10-17 21:27:58 +0000 (Thu, 17 Oct 2024)
Log Message:
-----------
Don't save window setup to xattr when exporting selected items. Set string 
encoding in xattr of archived bibtex.

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

Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2024-10-17 14:40:12 UTC (rev 28963)
+++ trunk/bibdesk/BibDocument.m 2024-10-17 21:27:58 UTC (rev 28964)
@@ -1211,7 +1211,8 @@
         }
         
         // save our window setup if we save or export to BibTeX
-        if ([[self class] isNativeType:typeName] || [typeName 
isEqualToString:BDSKMinimalBibTeXDocumentType])
+        if (([[self class] isNativeType:typeName] || [typeName 
isEqualToString:BDSKMinimalBibTeXDocumentType]) &&
+            (docFlags.isExporting == NO || [saveAccessoryController 
exportSelection] == NO))
             [self saveWindowSetupInExtendedAttributesAtURL:absoluteURL 
forEncoding:encoding resetLocal:BDSKIsSaveOrSaveAsOperation(saveOperation)];
     }
     
@@ -1264,6 +1265,8 @@
     BOOL success = [bibtexData writeToURL:bibtexURL options:0 error:outError];
     
     if (success) {
+        [fm setAppleStringEncoding:[self encodingForSaving] atURL:bibtexURL 
error:NULL];
+        
         NSMutableArray *args = [NSMutableArray arrayWithObjects:@"-czf", 
[fileURL path], bibtexFile, nil];
         if ([localFiles count]) {
             [args addObject:@"-C"];

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to