From 2edfb0aaacbf56583cb444604480b86a95acc13d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 29 Apr 2010 01:28:11 -0700 Subject: [PATCH] Fixed regression when using panels (no bug, r=me). --- core/MenuStyle_Base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/MenuStyle_Base.cpp b/core/MenuStyle_Base.cpp index 89eeb534..6c966f1e 100644 --- a/core/MenuStyle_Base.cpp +++ b/core/MenuStyle_Base.cpp @@ -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)