Commit ddb33d18 authored by sky@chromium.org's avatar sky@chromium.org

Fixes possible crash in menus. The crash would happen because we were

incorrectly clearing the selection.

BUG=62872
TEST=none

Review URL: http://codereview.chromium.org/6275009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72048 0039d316-1c4b-4281-b951-d872f2087c98
parent 7e521435
......@@ -559,6 +559,7 @@ void MenuController::OnMouseMoved(SubmenuView* source,
if (part.type == MenuPart::MENU_ITEM && part.menu) {
SetSelection(part.menu, SELECTION_OPEN_SUBMENU);
} else if (!part.is_scroll() && pending_state_.item &&
pending_state_.item->GetParentMenuItem() &&
(!pending_state_.item->HasSubmenu() ||
!pending_state_.item->GetSubmenu()->IsShowing())) {
// On exit if the user hasn't selected an item with a submenu, move the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment