aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-09-26 22:26:24 +0000
committerstuconnolly <stuart02@gmail.com>2011-09-26 22:26:24 +0000
commit915ea2f00e1f31a57e74e987062a1b5c2381635d (patch)
tree7f83258d94c31d649e42a5e64b3331fd1e4b8a43 /Source
parent5067d8cbc5db658330322f3291c8723a6b041473 (diff)
downloadsequelpro-915ea2f00e1f31a57e74e987062a1b5c2381635d.tar.gz
sequelpro-915ea2f00e1f31a57e74e987062a1b5c2381635d.tar.bz2
sequelpro-915ea2f00e1f31a57e74e987062a1b5c2381635d.zip
Fix test.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPMenuAdditions.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPMenuAdditions.m b/Source/SPMenuAdditions.m
index d653f71a..4ee5956f 100644
--- a/Source/SPMenuAdditions.m
+++ b/Source/SPMenuAdditions.m
@@ -24,7 +24,6 @@
#import "SPMenuAdditions.h"
-
@implementation NSMenu (SPMenuAdditions)
// Add a 10.5-compatible removeAllItems
@@ -32,7 +31,8 @@
{
if ([self respondsToSelector:@selector(removeAllItems)]) {
[(id)self removeAllItems];
- } else {
+ }
+ else {
while ([self numberOfItems]) [self removeItemAtIndex:0];
}
}