aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-09-03 13:00:46 +0000
committerBibiko <bibiko@eva.mpg.de>2010-09-03 13:00:46 +0000
commit61adeb9f4ad973a93ce35ac4ebf6068f2beac6ca (patch)
tree81c499d06c5be9773093657b070eda5529d58d6b /Source/SPTableView.m
parentca60d2e7bdec4763489e79ff4c457c32cd1f57db (diff)
downloadsequelpro-61adeb9f4ad973a93ce35ac4ebf6068f2beac6ca.tar.gz
sequelpro-61adeb9f4ad973a93ce35ac4ebf6068f2beac6ca.tar.bz2
sequelpro-61adeb9f4ad973a93ce35ac4ebf6068f2beac6ca.zip
• further progress for CSV import into new table
- added some GUI validations - in new table mode changed 'type' column into self-learning NSComboBoxCells - fixed issue for closing sheet if user press RETURN, only close it if 'Import' button is enable
Diffstat (limited to 'Source/SPTableView.m')
-rw-r--r--Source/SPTableView.m14
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m
index c19678db..7e212884 100644
--- a/Source/SPTableView.m
+++ b/Source/SPTableView.m
@@ -94,10 +94,16 @@
// ENTER or RETURN closes the SPFieldMapperController sheet by sending an object with the tag 1
if([[[[self delegate] class] description] isEqualToString:@"SPFieldMapperController"]) {
- NSButton *b = [[[NSButton alloc] init] autorelease];
- [b setTag:1];
- [[self delegate] closeSheet:b];
- return;
+ if([[self delegate] canBeClosed]) {
+ NSButton *b = [[[NSButton alloc] init] autorelease];
+ [b setTag:1];
+ [[self delegate] closeSheet:b];
+ return;
+ } else {
+ [super keyDown:theEvent];
+ return;
+ }
+
}
if (![[[[self delegate] class] description] isEqualToString:@"SPCustomQuery"] &&