Don't send redundant wxSysColourChangedEvent in wxFrame

These events are already sent to all children, there is no need to do it
explicitly.

See #26454.
This commit is contained in:
Steve Cornett
2026-05-23 18:57:30 +02:00
committed by Vadim Zeitlin
parent a0881cb589
commit 6cb7b3a615
-9
View File
@@ -473,15 +473,6 @@ wxTaskBarButton* wxFrame::MSWGetTaskBarButton()
// Responds to colour changes, and passes event on to children.
void wxFrame::OnSysColourChanged(wxSysColourChangedEvent& event)
{
#if wxUSE_STATUSBAR
if ( m_frameStatusBar )
{
wxSysColourChangedEvent event2;
event2.SetEventObject( m_frameStatusBar );
m_frameStatusBar->HandleWindowEvent(event2);
}
#endif // wxUSE_STATUSBAR
#if wxUSE_MENUS && wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
if ( wxMenuBar* const menuBar = GetMenuBar() )
{