From 29c407a371f0e98ab143372acebee70ec5cd86dd Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 4 Apr 2006 14:31:46 +0000 Subject: [PATCH] Fixed menus in case the window was hidden (VLC, StyledEdit). This is just a quick fix and will be changed later. Thanks to John Drinkwater for testing git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17008 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp index d9170c2aab..214899a657 100644 --- a/src/kits/interface/Menu.cpp +++ b/src/kits/interface/Menu.cpp @@ -1243,7 +1243,7 @@ BMenu::_AddItem(BMenuItem *item, int32 index) item->SetSuper(this); - if (locked && window != NULL && !window->IsHidden()) { + if (locked && window != NULL) { // Make sure we update the layout if needed. LayoutItems(index); //UpdateWindowViewSize(); @@ -1306,7 +1306,7 @@ BMenu::RemoveItems(int32 index, int32 count, BMenuItem *item, bool deleteItems) } } - if (invalidateLayout && locked && window != NULL && !window->IsHidden()) { + if (invalidateLayout && locked && window != NULL) { LayoutItems(0); //UpdateWindowViewSize(); Invalidate();