Remove superfluous NULL check as menu being non-NULL is asserted at the top.
Fixes CID 1075. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27505 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f679edb6e4
commit
fbf8d9c8dc
@ -2137,7 +2137,7 @@ BContainerWindow::SetUpEditQueryItem(BMenu *menu)
|
||||
if (!poseViewIsQuery && !queryInSelection && item)
|
||||
item->Menu()->RemoveItem(item);
|
||||
|
||||
else if ((poseViewIsQuery || queryInSelection) && menu && !item) {
|
||||
else if ((poseViewIsQuery || queryInSelection) && !item) {
|
||||
|
||||
// add edit query item after Open
|
||||
item = menu->FindItem(kOpenSelection);
|
||||
|
Loading…
Reference in New Issue
Block a user