applied patch from Váradi Zsolt Gyula: fixes People's (#1308) and Launchbox's closing problem. Thanks.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21776 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2007-07-31 20:56:31 +00:00
parent dc1e5b5351
commit c10776a209
1 changed files with 2 additions and 2 deletions

View File

@ -1461,8 +1461,8 @@ BApplication::_WindowAt(uint32 index, bool includeMenus) const
uint32 count = gLooperList.CountLoopers();
for (uint32 i = 0; i < count && index < count; i++) {
BWindow* window = dynamic_cast<BWindow*>(gLooperList.LooperAt(i));
if (window == NULL || (!includeMenus
&& dynamic_cast<BMenuWindow *>(window) == NULL)) {
if (window == NULL && (!includeMenus
|| dynamic_cast<BMenuWindow *>(window) == NULL)) {
index++;
continue;
}