From 2fb64ce313440feb869c5c71dc71a84716c8b761 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sat, 16 Oct 2010 22:51:06 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20issue=20to=20show/hide=20the=20Quic?= =?UTF-8?q?klook=20GUI=20item=20in=20the=20Field=20Editor=20Sheet=20?= =?UTF-8?q?=E2=80=A2=20attempt=20to=20solve=20the=20issue=20of=20storing?= =?UTF-8?q?=20ENUM=20fields=20in=20Content=20View=20correctly=20if=20the?= =?UTF-8?q?=20user=20interacts=20with=20the=20mouse=20on=20the=20comboxes?= =?UTF-8?q?=20for=20different=20rows=20-=20this=20addresses=20the=20issues?= =?UTF-8?q?=20865=20and=20833?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPFieldEditorController.m | 2 +- Source/SPTableContent.m | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m index 0362c430..003ab9cb 100644 --- a/Source/SPFieldEditorController.m +++ b/Source/SPFieldEditorController.m @@ -302,7 +302,7 @@ [editTextScrollView setHidden:YES]; // Hide QuickLook button and text/image/hex control for text data - [editSheetQuickLookButton setHidden:(!_isBlob && !_isBINARY && _isGeometry)]; + [editSheetQuickLookButton setHidden:((!_isBlob && !_isBINARY) || _isGeometry)]; [editSheetSegmentControl setHidden:(!_isBlob && !_isBINARY && !_isGeometry)]; [editSheetSegmentControl setEnabled:YES forSegment:1]; diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 5a130b96..08b10d45 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -3647,6 +3647,8 @@ // Catch editing events in the row and if the row isn't currently being edited, // start an edit. This allows edits including enum changes to save correctly. + if ( isEditingRow && [tableContentView selectedRow] != currentlyEditingRow ) + [self saveRowOnDeselect]; if ( !isEditingRow ) { [oldRow setArray:[tableValues rowContentsAtIndex:rowIndex]]; isEditingRow = YES; -- cgit v1.2.3