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:
parent
dc1e5b5351
commit
c10776a209
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue