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