From c10776a2095c0c7325616ebe9778e18cf531ad82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 31 Jul 2007 20:56:31 +0000 Subject: [PATCH] =?UTF-8?q?applied=20patch=20from=20V=C3=A1radi=20Zsolt=20?= =?UTF-8?q?Gyula:=20fixes=20People's=20(#1308)=20and=20Launchbox's=20closi?= =?UTF-8?q?ng=20problem.=20Thanks.?= 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@21776 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 8e798d5cb4..a5440b6c62 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; }