diff --git a/Frameworks/OakAppKit/src/NSView Additions.mm b/Frameworks/OakAppKit/src/NSView Additions.mm index a9d965f0..20841c04 100644 --- a/Frameworks/OakAppKit/src/NSView Additions.mm +++ b/Frameworks/OakAppKit/src/NSView Additions.mm @@ -10,7 +10,8 @@ [cell setFont:font]; [cell setAltersStateOfSelectedItem:NO]; [cell setMenu:menu]; - [cell selectItemAtIndex:index]; + if(index >= 0) + [cell selectItemAtIndex:index]; [cell performClickWithFrame:rect inView:self]; } @end