Revision: 15840
          http://sourceforge.net/p/skim-app/code/15840
Author:   hofman
Date:     2025-12-05 16:23:30 +0000 (Fri, 05 Dec 2025)
Log Message:
-----------
only set delegate for note and author columns

Modified Paths:
--------------
    trunk/SKMainWindowController_UI.m

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2025-12-05 15:51:13 UTC (rev 15839)
+++ trunk/SKMainWindowController_UI.m   2025-12-05 16:23:30 UTC (rev 15840)
@@ -760,10 +760,12 @@
         return [ov makeViewWithIdentifier:[tableColumn identifier] owner:self];
     } else if ([ov isEqual:rightSideController.noteOutlineView]) {
         if ([(PDFAnnotation *)item type] || tableColumn == [ov 
outlineTableColumn]) {
-            NSTableCellView *view = [ov makeViewWithIdentifier:[tableColumn 
identifier] owner:self];
-            if ([[tableColumn identifier] isEqualToString:TYPE_COLUMNID])
+            NSString *columnID = [tableColumn identifier];
+            NSTableCellView *view = [ov makeViewWithIdentifier:columnID 
owner:self];
+            if ([columnID isEqualToString:TYPE_COLUMNID])
                 [(SKAnnotationTypeImageView *)[view imageView] 
setHasOutline:[pdfView currentAnnotation] == item];
-            [[view textField] setDelegate:self];
+            if ([(PDFAnnotation *)item type] && ([columnID 
isEqualToString:NOTE_COLUMNID] || [columnID isEqualToString:AUTHOR_COLUMNID]))
+                [[view textField] setDelegate:self];
             return view;
         }
     }

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to