Ver Fonte

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

Andreas Kling há 5 anos atrás
pai
commit
a93f35ac71
1 ficheiros alterados com 1 adições e 1 exclusões
  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();
             break;
         }
-    } while (target && target != stay_within && !e.is_accepted());
+    } while (target && !e.is_accepted());
 }
 
 bool CObject::is_visible_for_timer_purposes() const