From 91b1ee05c051f3cd712e2fa3571c82ac4c6f9d57 Mon Sep 17 00:00:00 2001 From: Vaclav Slavik Date: Sun, 29 Mar 2015 11:08:27 +0200 Subject: [PATCH] Use IsThisEnabled() for wxActivityIndicator appearance Determine the enabled state using IsThisEnabled() instead of IsEnabled(), because the latter returns false if the entire window is disabled without its appearance being affected, e.g. if another window is shown modally. --- src/generic/activityindicator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/activityindicator.cpp b/src/generic/activityindicator.cpp index d855760e9e..53c65e14bf 100644 --- a/src/generic/activityindicator.cpp +++ b/src/generic/activityindicator.cpp @@ -150,7 +150,7 @@ private: // the next position every time. gc->Rotate(m_frame*angle); - const bool isEnabled = m_win->IsEnabled(); + const bool isEnabled = m_win->IsThisEnabled(); for ( int n = 0; n < NUM_DOTS; n++ ) { // Draw all dots uniformly grey when the window is disabled,