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