BMenuItems are invoked if needed when they are child of a menubar. Fixes bug 343
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16862 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -421,8 +421,11 @@ BMenuBar::Track(int32 *action, int32 startIndex, bool showMenu)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (window->Lock()) {
|
if (window->Lock()) {
|
||||||
if (fSelected != NULL)
|
if (fSelected != NULL) {
|
||||||
|
if (fSelected->Submenu() == NULL)
|
||||||
|
resultItem = fSelected;
|
||||||
SelectItem(NULL);
|
SelectItem(NULL);
|
||||||
|
}
|
||||||
if (resultItem != NULL)
|
if (resultItem != NULL)
|
||||||
resultItem->Invoke();
|
resultItem->Invoke();
|
||||||
window->Unlock();
|
window->Unlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user