aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r--Source/TableContent.m13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index 551ddd59..bb37b444 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -2320,15 +2320,20 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn
// Locate the caret in editTextView
// (to select all takes a bit time for large data)
[editTextView setSelectedRange:NSMakeRange(0,0)];
- // Set focus to editTextView
- [editSheet makeFirstResponder:editTextView];
+
+ // Set focus
+ if(image == nil)
+ [editSheet makeFirstResponder:editTextView];
+ else
+ [editSheet makeFirstResponder:editImage];
+
[stringValue release];
}
- [editSheetProgressBar stopAnimation:self];
-
editSheetWillBeInitialized = NO;
+ [editSheetProgressBar stopAnimation:self];
+
// wait for editSheet
code = [NSApp runModalForWindow:editSheet];