Root menu handles in callbacks (bug 4353, r=fyren).

This commit is contained in:
David Anderson
2010-04-27 21:03:20 -07:00
parent b8d512f5e1
commit a36fa76d21
3 changed files with 69 additions and 0 deletions
+3
View File
@@ -377,6 +377,9 @@ void BaseMenuStyle::ClientPressedKey(int client, unsigned int key_press)
RemoveClientFromWatch(client);
}
Handle_t hndl = menu->GetHandle();
AutoHandleRooter ahr(hndl);
if (cancel)
{
mh->OnMenuCancel(menu, client, reason);