fixed a bug that made the tabs not to follow when shading

This commit is contained in:
pekdon 2002-01-05 17:55:53 +00:00
parent d5eac398fc
commit 06c647d220

View file

@ -177,9 +177,10 @@ void Windowmenu::itemSelected(int button, int index) {
switch (item->function()) { switch (item->function()) {
case BScreen::WindowShade: case BScreen::WindowShade:
hide(); hide();
if (window->getTab())
window->getTab()->shade();
window->shade(); window->shade();
if (window->hasTab())
window->getTab()->shade();
break; break;
case BScreen::WindowIconify: case BScreen::WindowIconify: