diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-06-15 08:05:26 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-06-15 08:05:26 +0000 |
commit | 52f9e54244e497919a130439d3cb498913df5f29 (patch) | |
tree | cdab00ef2fb65b2a0d723256d639f51393e5e860 /Source/SPIndexesController.m | |
parent | 64a31593840273a43349b642d08723fbbe88f2c4 (diff) | |
download | sequelpro-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/SPIndexesController.m')
-rw-r--r-- | Source/SPIndexesController.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/SPIndexesController.m b/Source/SPIndexesController.m index 0281d70e..819a8bc2 100644 --- a/Source/SPIndexesController.m +++ b/Source/SPIndexesController.m @@ -226,6 +226,24 @@ } #pragma mark - +#pragma mark TableView delegate methods + +/** + * Performs various interface validation + */ +- (void)tableViewSelectionDidChange:(NSNotification *)aNotification +{ + id object = [aNotification object]; + + if (object == indexesTableView) { + + // Check if there is currently an index selected and change button state accordingly + [removeIndexButton setEnabled:([indexesTableView numberOfSelectedRows] > 0 && [tablesList tableType] == SPTableTypeTable)]; + } + +} + +#pragma mark - #pragma mark Text field delegate methods /** |