aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructure.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-06-15 08:05:26 +0000
committerBibiko <bibiko@eva.mpg.de>2010-06-15 08:05:26 +0000
commit52f9e54244e497919a130439d3cb498913df5f29 (patch)
treecdab00ef2fb65b2a0d723256d639f51393e5e860 /Source/SPTableStructure.m
parent64a31593840273a43349b642d08723fbbe88f2c4 (diff)
downloadsequelpro-52f9e54244e497919a130439d3cb498913df5f29.tar.gz
sequelpro-52f9e54244e497919a130439d3cb498913df5f29.tar.bz2
sequelpro-52f9e54244e497919a130439d3cb498913df5f29.zip
• several fixes for index table in Structure view
- fixed binding for removeIndexButton - moved indexTable's tableViewSelectionDidChange: delegate to SPIndexController to fix enabling/disabling of the removeIndexButton - fixed issue to blank the index table for multiple selected tables
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)];
- }
}
/**