aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r--Source/TablesList.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m
index f5f8a16f..ad3c0217 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -98,7 +98,7 @@ adds a new table to the tables-array (no changes in mysql-db)
- (IBAction)addTable:(id)sender
{
if ( ![tableSourceInstance selectionShouldChangeInTableView:nil] ||
- ![tableContentInstance selectionShouldChangeInTableView:nil] ||
+ ![tableContentInstance saveRowOnDeselect] ||
![tableDocumentInstance database] )
return;
[tableWindow endEditingFor:nil];
@@ -151,7 +151,7 @@ copies a table, if desired with content
if ( [tablesListView numberOfSelectedRows] != 1 )
return;
- if ( ![tableSourceInstance selectionShouldChangeInTableView:nil] || ![tableContentInstance selectionShouldChangeInTableView:nil] )
+ if ( ![tableSourceInstance selectionShouldChangeInTableView:nil] || ![tableContentInstance saveRowOnDeselect] )
return;
[tableWindow endEditingFor:nil];
@@ -588,7 +588,7 @@ traps enter and esc and edit/cancel without entering next row
//we have to be sure that TableSource and TableContent have finished editing
// if ( ![tableSourceInstance addRowToDB] || ![tableContentInstance addRowToDB] ) {
if ( ![tableSourceInstance selectionShouldChangeInTableView:nil] ||
- ![tableContentInstance selectionShouldChangeInTableView:nil] ) {
+ ![tableContentInstance saveRowOnDeselect] ) {
return NO;
} else {
return YES;