Sorry, the previous patch for WindowAt() by Váradi Zsolt Gyula was broken as well.
This change now actually fixes its logic; thanks for the hint, though :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21777 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c10776a209
commit
c7f1e4bda3
@ -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
Block a user