Deskbar: Style fix, check for NULL explicitly
This commit is contained in:
parent
dbf8c834a2
commit
f68c687536
@ -108,9 +108,10 @@ TTeamMenu::AttachedToWindow()
|
||||
item->SetEnabled(canhandle);
|
||||
|
||||
BMenu* menu = item->Submenu();
|
||||
if (menu)
|
||||
if (menu != NULL) {
|
||||
menu->SetTrackingHook(barview->MenuTrackingHook,
|
||||
barview->GetTrackingHookData());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user