Revision: 28809
          http://sourceforge.net/p/bibdesk/svn/28809
Author:   hofman
Date:     2024-02-23 17:17:53 +0000 (Fri, 23 Feb 2024)
Log Message:
-----------
simplify check

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

Modified: trunk/bibdesk/BibDocument_DataSource.m
===================================================================
--- trunk/bibdesk/BibDocument_DataSource.m      2024-02-23 17:00:36 UTC (rev 
28808)
+++ trunk/bibdesk/BibDocument_DataSource.m      2024-02-23 17:17:53 UTC (rev 
28809)
@@ -214,10 +214,8 @@
 - (void)tableViewSelectionDidChange:(NSNotification *)aNotification{
     if (docFlags.ignoreSelectionChange)
         return;
-       NSTableView *tv = [aNotification object];
-    // Or should we use -displaysFileSearch?
     BOOL displaysFileSearch = [self 
displaysControlView:BDSKControlViewFileSearch];
-    if((displaysFileSearch == NO && tv == tableView) || (displaysFileSearch && 
tv == [fileSearchController tableView])){
+    if([aNotification object] == (displaysFileSearch ? [fileSearchController 
tableView] : tableView)){
         NSNotification *note = [NSNotification 
notificationWithName:BDSKTableSelectionChangedNotification object:self];
         [[NSNotificationQueue defaultQueue] enqueueNotification:note 
postingStyle:NSPostWhenIdle coalesceMask:NSNotificationCoalescingOnName 
forModes:nil];
     }

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