mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 08:53:06 +08:00
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:
committed by
Vadim Zeitlin
parent
a0881cb589
commit
6cb7b3a615
@@ -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() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user