mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 13:17:55 -05:00
Select popup menu item only on non-negative index.
This commit is contained in:
committed by
Allan Odgaard
parent
8a8432d065
commit
98de1f5f51
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user