aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-10-16 22:51:06 +0000
committerBibiko <bibiko@eva.mpg.de>2010-10-16 22:51:06 +0000
commit2fb64ce313440feb869c5c71dc71a84716c8b761 (patch)
tree9062917aa2eb75797744cbc24d475262deaa072b
parent23cbc5372a7bb06b491fe906956d6523e2e6daf7 (diff)
downloadsequelpro-2fb64ce313440feb869c5c71dc71a84716c8b761.tar.gz
sequelpro-2fb64ce313440feb869c5c71dc71a84716c8b761.tar.bz2
sequelpro-2fb64ce313440feb869c5c71dc71a84716c8b761.zip
• fixed issue to show/hide the Quicklook GUI item in the Field Editor Sheet
• attempt to solve the issue of storing ENUM fields in Content View correctly if the user interacts with the mouse on the comboxes for different rows - this addresses the issues 865 and 833
-rw-r--r--Source/SPFieldEditorController.m2
-rw-r--r--Source/SPTableContent.m2
2 files changed, 3 insertions, 1 deletions
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;