Don't activate the window, because it will steal the focus from the current active window, and clicking elsewhere won't close the menu

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18537 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2006-08-18 10:26:29 +00:00
parent 152808170e
commit 27f1bc8217
+1 -1
View File
@@ -1898,7 +1898,7 @@ BMenu::SelectItem(BMenuItem *menuItem, uint32 showSubmenu, bool selectFirstItem)
BMenu *subMenu = fSelected->Submenu(); BMenu *subMenu = fSelected->Submenu();
if (subMenu != NULL && subMenu->Window() == NULL) { if (subMenu != NULL && subMenu->Window() == NULL) {
subMenu->_show(selectFirstItem); subMenu->_show(selectFirstItem);
subMenu->Window()->Activate(); //subMenu->Window()->Activate();
} }
} }
} }