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
This commit is contained in:
Stefano Ceccherini
2006-04-04 14:31:46 +00:00
parent 6d9adcf120
commit 29c407a371
+2 -2
View File
@@ -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();