aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableRelations.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableRelations.m')
-rw-r--r--Source/SPTableRelations.m6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m
index 61c16065..8f7810be 100644
--- a/Source/SPTableRelations.m
+++ b/Source/SPTableRelations.m
@@ -328,11 +328,7 @@
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification
{
- if ( [relationsView numberOfSelectedRows] ) {
- [removeButton setEnabled:YES];
- } else {
- [removeButton setEnabled:NO];
- }
+ [removeButton setEnabled:([relationsView numberOfSelectedRows] > 0)];
}
- (void)tableViewSelectionIsChanging:(NSNotification *)aNotification