Revision: 27669
http://sourceforge.net/p/bibdesk/svn/27669
Author: hofman
Date: 2022-07-01 14:57:54 +0000 (Fri, 01 Jul 2022)
Log Message:
-----------
check for selected pub for updating displayed files in final method
Modified Paths:
--------------
trunk/bibdesk/BibDocument_UI.m
Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m 2022-07-01 14:48:55 UTC (rev 27668)
+++ trunk/bibdesk/BibDocument_UI.m 2022-07-01 14:57:54 UTC (rev 27669)
@@ -1352,9 +1352,9 @@
if (docFlags.isDocumentClosed)
return;
- BOOL displayingLocal = (NO == [self
hasGroupTypeSelected:BDSKExternalGroupType]);
-
- if (displayingLocal && (docFlags.itemChangeMask &
BDSKItemChangedFilesMask) != 0) {
+ if ((docFlags.itemChangeMask & BDSKItemChangedFilesMask) != 0 &&
+ NO == [self hasGroupTypeSelected:BDSKExternalGroupType] &&
+ [[NSSet setWithArray:[self selectedPublications]]
intersectsSet:changedPublications]) {
[self updateFileViews];
if (docFlags.controllingQLPreviewPanel ||
docFlags.controllingFVPreviewPanel)
[self previewURLs:nil];
@@ -1367,7 +1367,7 @@
// allow updating a smart group if it's selected
[[groups smartGroups]
makeObjectsPerformSelector:@selector(invalidateCount)];
[self updateSmartGroups];
- if (displayingLocal && [self hasGroupTypeSelected:BDSKSmartGroupType]
== NO) {
+ if (NO == [self hasGroupTypeSelected:BDSKExternalGroupType |
BDSKSmartGroupType]) {
if ((docFlags.itemChangeMask & BDSKItemChangedSearchKeyMask) != 0)
{
// this handles all UI updates if we call it, so don't bother
with any others
[self search:nil];
@@ -1499,9 +1499,8 @@
docFlags.itemChangeMask |= BDSKItemChangedSortKeyMask;
if ([self displaysControlView:BDSKControlViewSearch] &&
searchKeyDependsOnKey([searchButtonBar selectedIdentifier], changedKey))
docFlags.itemChangeMask |= BDSKItemChangedSearchKeyMask;
- if (([changedKey isEqualToString:BDSKLocalFileString] || [changedKey
isEqualToString:BDSKRemoteURLString] ||
- (docFlags.showingURLFields && ([changedKey
isEqualToString:BDSKLocalUrlString] || [changedKey
isEqualToString:BDSKUrlString]))) &&
- [[self selectedPublications] containsObject:pub])
+ if ([changedKey isEqualToString:BDSKLocalFileString] || [changedKey
isEqualToString:BDSKRemoteURLString] ||
+ (docFlags.showingURLFields && ([changedKey
isEqualToString:BDSKLocalUrlString] || [changedKey
isEqualToString:BDSKUrlString])))
docFlags.itemChangeMask |= BDSKItemChangedFilesMask;
// queue for UI updating, in case the item is changed as part of a batch
process such as Find & Replace or AutoFile
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