Ticket #1308: windowat_fix.diff

File windowat_fix.diff, 619 bytes (added by karma, 17 years ago)

This fixes the bug. (also fixes Launchbox, and the WindowAt function in general)

  • src/kits/app/Application.cpp

     
    14611461    uint32 count = gLooperList.CountLoopers();
    14621462    for (uint32 i = 0; i < count && index < count; i++) {
    14631463        BWindow* window = dynamic_cast<BWindow*>(gLooperList.LooperAt(i));
    1464         if (window == NULL || (!includeMenus
    1465                 && dynamic_cast<BMenuWindow *>(window) == NULL)) {
     1464        if (window == NULL && (!includeMenus
     1465                || dynamic_cast<BMenuWindow *>(window) == NULL)) {
    14661466            index++;
    14671467            continue;
    14681468        }