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:
Michael Lotz 2008-09-14 18:09:35 +00:00
parent f679edb6e4
commit fbf8d9c8dc

View File

@ -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);