Fixed regression when using panels (no bug, r=me).

This commit is contained in:
David Anderson 2010-04-29 01:28:11 -07:00
parent fc88cd3cb1
commit 2edfb0aaac

View File

@ -377,7 +377,7 @@ void BaseMenuStyle::ClientPressedKey(int client, unsigned int key_press)
RemoveClientFromWatch(client);
}
Handle_t hndl = menu->GetHandle();
Handle_t hndl = menu ? menu->GetHandle() : BAD_HANDLE;
AutoHandleRooter ahr(hndl);
if (cancel)