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:
Axel Dörfler 2007-06-25 23:48:47 +00:00
parent b418398455
commit d2d8f91af5
1 changed files with 2 additions and 2 deletions

View File

@ -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++;
}
}