Handle NSException from removeItemAtIndex.
This commit is contained in:
parent
3822ac74fc
commit
81c42faa5a
@ -393,9 +393,16 @@ menu_item_removed (gint position,
|
||||
gpointer user_data)
|
||||
{
|
||||
GNSMenu *menu = user_data;
|
||||
|
||||
@try
|
||||
{
|
||||
[menu removeItemAtIndex:position];
|
||||
}
|
||||
@catch(NSException *err)
|
||||
{
|
||||
g_critical("GNSMenu removeItemAtIndex: %d raised exception %s", position,
|
||||
[[err reason] UTF8String]);
|
||||
}
|
||||
}
|
||||
|
||||
@implementation GNSMenu
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user