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