aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-05-18 18:50:46 +0000
committerstuconnolly <stuart02@gmail.com>2009-05-18 18:50:46 +0000
commit0f24b8f010d1f04cb42cd3b3dc59137596c6e612 (patch)
treec60e7dc1af8e1c75c37c05d6bee56ccbb4fe0889 /Source
parent7ef2eeff6e81fa6a95636cd7f9af4fa83c2f94a6 (diff)
downloadsequelpro-0f24b8f010d1f04cb42cd3b3dc59137596c6e612.tar.gz
sequelpro-0f24b8f010d1f04cb42cd3b3dc59137596c6e612.tar.bz2
sequelpro-0f24b8f010d1f04cb42cd3b3dc59137596c6e612.zip
Updates to add relation sheet.
Diffstat (limited to 'Source')
-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