Incorrect font applied in Add-on submenu

When accessing the Tracker Add-on menu from ContainerWindow's top menu, the
font in Add-Ons submenu would change from its parent menu.
This commit is contained in:
Philippe Saint-Pierre 2015-06-29 11:27:50 -04:00
parent ee87fbc421
commit ffc3c6172b

View File

@ -3051,11 +3051,14 @@ BContainerWindow::BuildAddOnMenu(BMenu* menu)
if (item == NULL)
return;
BFont font;
menu->GetFont(&font);
menu = item->Submenu();
if (menu == NULL)
return;
menu->SetFont(be_plain_font);
menu->SetFont(&font);
// found the addons menu, empty it first
for (;;) {