aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructure.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableStructure.m')
-rw-r--r--Source/SPTableStructure.m10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m
index ab3e17a1..01b9cd5d 100644
--- a/Source/SPTableStructure.m
+++ b/Source/SPTableStructure.m
@@ -289,9 +289,12 @@
[removeIndexButton setEnabled:NO];
[editTableButton setEnabled:NO];
- // If no table is selected, refresh the table display to blank and return
+ // If no table is selected, refresh the table/index display to blank and return
if (!selectedTable) {
[tableSourceView reloadData];
+ // Empty indexesController's fields and indices explicitly before reloading
+ [indexesController setFields:[NSArray array]];
+ [indexesController setIndexes:[NSArray array]];
[indexesTableView reloadData];
return;
}
@@ -1452,11 +1455,6 @@ would result in a position change.
[removeFieldButton setEnabled:NO];
}
}
- if (object == indexesTableView) {
-
- // Check if there is currently an index selected and change button state accordingly
- [removeIndexButton setEnabled:([indexesTableView numberOfSelectedRows] > 0 && [tablesListInstance tableType] == SPTableTypeTable)];
- }
}
/**