From 03dc350fa6de6edfe3ad9de2b951b1e7eee4f9a6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 16 Dec 2011 19:33:31 +0000 Subject: [PATCH 1/1] Use IsThisEnabled() to test if AUI child is enabled, not IsEnabled(). IsEnabled() returns false if the parent window is disabled and calling Enable() does not help with this, so we could keep trying and trying to enable the window unsuccessfully if it was reenabled while its parent was disabled, resulting in a never-ending stream of EVT_IDLE events. Closes #13767. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/auibar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aui/auibar.cpp b/src/aui/auibar.cpp index fb62e30894..d9bb3046b4 100644 --- a/src/aui/auibar.cpp +++ b/src/aui/auibar.cpp @@ -2150,7 +2150,7 @@ void wxAuiToolBar::DoIdleUpdate() { bool is_enabled; if (item.m_window) - is_enabled = item.m_window->IsEnabled(); + is_enabled = item.m_window->IsThisEnabled(); else is_enabled = (item.m_state & wxAUI_BUTTON_STATE_DISABLED) ? false : true; -- 2.45.2