Fixed copy&paste bug, thanks Stippi for noticing!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21506 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b418398455
commit
d2d8f91af5
@ -1441,8 +1441,8 @@ BApplication::_CountWindows(bool includeMenus) const
|
||||
uint32 count = 0;
|
||||
for (int32 i = 0; i < gLooperList.CountLoopers(); 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)) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user