Browse Source

LibCore: Remove redundant check in CObject::dispatch_event()

Andreas Kling 5 năm trước cách đây
mục cha
commit
a93f35ac71
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Libraries/LibCore/CObject.cpp

+ 1 - 1
Libraries/LibCore/CObject.cpp

@@ -194,7 +194,7 @@ void CObject::dispatch_event(CEvent& e, CObject* stay_within)
             e.accept();
             e.accept();
             break;
             break;
         }
         }
-    } while (target && target != stay_within && !e.is_accepted());
+    } while (target && !e.is_accepted());
 }
 }
 
 
 bool CObject::is_visible_for_timer_purposes() const
 bool CObject::is_visible_for_timer_purposes() const