# HG changeset patch # User Rik # Date 1587938501 25200 # Node ID c387a55aed05eca9b10543603baddda3323741bd # Parent 46a23dc62056d43f0e468956cc5f2ddb4ba81500 Fix problem with uicontrol "Enable" transition from "off"->"inactive" (bug #57128). * BaseControl.cc (update): Call setEnable(true) when "Enable" switched to "inactive". diff -r 46a23dc62056 -r c387a55aed05 libgui/graphics/BaseControl.cc --- a/libgui/graphics/BaseControl.cc Sun Apr 26 10:48:20 2020 -0700 +++ b/libgui/graphics/BaseControl.cc Sun Apr 26 15:01:41 2020 -0700 @@ -183,12 +183,15 @@ case uicontrol::properties::ID_ENABLE: if (up.enable_is ("inactive")) - w->blockSignals (true); + { + w->blockSignals (true); + w->setEnabled (true); + } else - { - w->blockSignals (false); - w->setEnabled (! up.enable_is ("off")); - } + { + w->blockSignals (false); + w->setEnabled (up.enable_is ("on")); + } break; case uicontrol::properties::ID_TOOLTIPSTRING: