|
From: <ho...@us...> - 2025-07-11 16:33:59
|
Revision: 15644
http://sourceforge.net/p/skim-app/code/15644
Author: hofman
Date: 2025-07-11 16:33:57 +0000 (Fri, 11 Jul 2025)
Log Message:
-----------
just check for editor
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2025-07-11 16:03:28 UTC (rev 15643)
+++ trunk/SKPDFView.m 2025-07-11 16:33:57 UTC (rev 15644)
@@ -2731,7 +2731,7 @@
}
- (void)editCurrentAnnotation:(id)sender {
- if (nil == currentAnnotation || [self isEditingAnnotation:currentAnnotation])
+ if (nil == currentAnnotation || editor)
return;
[self commitEditing];
@@ -2771,15 +2771,14 @@
}
- (void)editTextNoteWithEvent:(NSEvent *)theEvent {
- if ([self isEditingAnnotation:currentAnnotation])
- return;
-
- editor = [[SKTextNoteEditor alloc] initWithAnnotation:currentAnnotation delegate:self];
- [self textNoteEditorSetFrame:editor];
- [[self documentView] addSubview:editor];
- [editor startEditingWithEvent:theEvent];
-
- [self updatedAnnotation:currentAnnotation];
+ if (editor == nil) {
+ editor = [[SKTextNoteEditor alloc] initWithAnnotation:currentAnnotation delegate:self];
+ [self textNoteEditorSetFrame:editor];
+ [[self documentView] addSubview:editor];
+ [editor startEditingWithEvent:theEvent];
+
+ [self updatedAnnotation:currentAnnotation];
+ }
}
- (void)textNoteEditorSetFrame:(SKTextNoteEditor *)textNoteEditor {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|