Revision: 27597
http://sourceforge.net/p/bibdesk/svn/27597
Author: hofman
Date: 2022-06-09 16:45:25 +0000 (Thu, 09 Jun 2022)
Log Message:
-----------
Get isFile flags from enumerated files
Modified Paths:
--------------
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2022-06-09 16:14:06 UTC (rev 27596)
+++ trunk/bibdesk/BibItem.m 2022-06-09 16:45:25 UTC (rev 27597)
@@ -2766,12 +2766,15 @@
- (void)removeFilesAtIndexes:(NSIndexSet *)aSet
{
NSArray *oldFiles = [files objectsAtIndexes:aSet];
- BOOL isFile = [[oldFiles valueForKeyPath:@"@max.file"] boolValue];
+ BOOL isFile = NO;
[[[self undoManager] prepareWithInvocationTarget:self]
insertFiles:oldFiles atIndexes:aSet];
- for (BDSKLinkedFile *file in oldFiles)
+ for (BDSKLinkedFile *file in oldFiles) {
[self removeFileToBeFiled:file];
+ isFile |= [file isFile];
+ }
+
for (BDSKItemDownload *download in [[downloads copy] autorelease]) {
if ([oldFiles containsObject:[download linkedFile]]) {
[download cancel];
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