Fix recently broken buttons functionality in wxAuiNotebook The changes of 7c0354f9e4 (Remove potentially dangling m_pressedButton too, 2025-11-07) forgot that not only the per-page buttons but also the notebook buttons themselves could be pressed and didn't account for them in FindButtonIn(). Fix this by checking these buttons too to restore their functionality, as they didn't react to being pressed any more. Closes #25964.
| ... | ... | @@ -1686,6 +1686,12 @@ void wxAuiTabCtrl::OnLeaveWindow(wxMouseEvent& WXUNUSED(event)) |
| 1686 | 1686 | wxAuiTabContainerButton*
|
| 1687 | 1687 | wxAuiTabCtrl::FindButtonIn(wxAuiPaneButtonState state) const
|
| 1688 | 1688 | {
|
| 1689 | + for ( const auto& button : m_buttons )
|
|
| 1690 | + {
|
|
| 1691 | + if ( button.curState & state )
|
|
| 1692 | + return const_cast<wxAuiTabContainerButton*>(&button);
|
|
| 1693 | + }
|
|
| 1694 | + |
|
| 1689 | 1695 | for ( const auto& page : m_pages )
|
| 1690 | 1696 | {
|
| 1691 | 1697 | for ( const auto& button : page.buttons )
|
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help