Revision: 27538
http://sourceforge.net/p/bibdesk/svn/27538
Author: hofman
Date: 2022-06-03 16:21:58 +0000 (Fri, 03 Jun 2022)
Log Message:
-----------
Post file search index changed notification from noteFilesChanged instead of
from updateMetadataForKey
Modified Paths:
--------------
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2022-06-03 16:00:48 UTC (rev 27537)
+++ trunk/bibdesk/BibItem.m 2022-06-03 16:21:58 UTC (rev 27538)
@@ -2815,6 +2815,12 @@
[[NSNotificationCenter defaultCenter]
postNotificationName:BDSKBibItemChangedNotification
object:self
userInfo:notifInfo];
+ if (isFile && [[self owner] isDocument]) {
+ notifInfo = [NSDictionary dictionaryWithObjectsAndKeys:[NSArray
arrayWithObject:self], BDSKDocumentPublicationsKey, nil];
+ [[NSNotificationCenter defaultCenter]
postNotificationName:BDSKFileSearchIndexInfoChangedNotification
+ object:owner
+
userInfo:notifInfo];
+ }
}
}
@@ -4090,14 +4096,6 @@
}else{
[self setDateModified:nil];
}
-
- // Updates the document's file content search index
- if([owner isDocument] && [key isEqualToString:BDSKLocalFileString]){
- NSDictionary *notifInfo = [NSDictionary
dictionaryWithObjectsAndKeys:[NSArray arrayWithObject:self],
BDSKDocumentPublicationsKey, nil];
- [[NSNotificationCenter defaultCenter]
postNotificationName:BDSKFileSearchIndexInfoChangedNotification
-
object:(BibDocument *)owner
- userInfo:notifInfo];
- }
}
- (void)createFilesArray
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