aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPIndexesController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPIndexesController.m')
-rw-r--r--Source/SPIndexesController.m18
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
/**