From c7f1e4bda38c346c9bccd2c1e6917fc385b57343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 31 Jul 2007 21:50:28 +0000 Subject: [PATCH] =?UTF-8?q?Sorry,=20the=20previous=20patch=20for=20WindowA?= =?UTF-8?q?t()=20by=20V=C3=A1radi=20Zsolt=20Gyula=20was=20broken=20as=20we?= =?UTF-8?q?ll.=20This=20change=20now=20actually=20fixes=20its=20logic;=20t?= =?UTF-8?q?hanks=20for=20the=20hint,=20though=20:-)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21777 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/app/Application.cpp b/src/kits/app/Application.cpp index a5440b6c62..ab74f29494 100644 --- a/src/kits/app/Application.cpp +++ b/src/kits/app/Application.cpp @@ -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(gLooperList.LooperAt(i)); - if (window == NULL && (!includeMenus - || dynamic_cast(window) == NULL)) { + if (window == NULL || (!includeMenus + && dynamic_cast(window) != NULL)) { index++; continue; }