Use the correct window as parent of wxInfoBar close button.
Fix breakage of r72474 that used the parent window instead of wxInfoBar itself as the parent of its close button. Closes #14750. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -82,7 +82,7 @@ bool wxInfoBarGeneric::Create(wxWindow *parent, wxWindowID winid)
|
||||
|
||||
m_text = new wxStaticText(this, wxID_ANY, "");
|
||||
|
||||
m_button = wxBitmapButton::NewCloseButton(parent, wxID_ANY);
|
||||
m_button = wxBitmapButton::NewCloseButton(this, wxID_ANY);
|
||||
m_button->SetToolTip(_("Hide this notification message."));
|
||||
|
||||
// center the text inside the sizer with an icon to the left of it and a
|
||||
|
||||
Reference in New Issue
Block a user