* Don't allow to show windows that don't have a top level view yet. This fixes

bug #5022.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34209 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-11-24 17:19:24 +00:00
parent d61301717d
commit 121ce64309

View File

@ -338,7 +338,7 @@ ServerWindow::_Show()
STRACE(("ServerWindow %s: _Show\n", Title()));
if (fQuitting || fWindow->IsMinimized() || !fWindow->IsHidden()
|| fWindow->IsOffscreenWindow())
|| fWindow->IsOffscreenWindow() || fWindow->TopView() == NULL)
return;
// TODO: Maybe we need to dispatch a message to the desktop to show/hide us