Comment on reach of method TBeMenu::ResetTargets().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30607 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström 2009-05-03 13:49:11 +00:00
parent a866fa9466
commit b6b4a80389

View File

@ -410,6 +410,10 @@ TBeMenu::ClearMenuBuildingState()
void
TBeMenu::ResetTargets()
{
// This method does not recurse into submenus
// and does not affect menu items in submenus.
// (e.g. "Restart System" and "Power Off")
BNavMenu::ResetTargets();
// if we are dragging, set the target to whatever was set
@ -452,7 +456,8 @@ TBeMenu::ResetTargets()
case CMD_REBOOT_SYSTEM:
case CMD_SUSPEND_SYSTEM:
case CMD_SHUTDOWN_SYSTEM:
// restart/shutdown
// Unreachable cases.
// See comment at start of method.
#ifdef __HAIKU__
item->SetTarget(be_app);
#else