Utils: Fix StringAspect enabler

Previously m_checked->value() was used which might not have been
updated yet. Using volatileValue makes sure that we get the actual
Widget state.

Change-Id: I1c86d809408a08a5ad483af7530d6852b0822531
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-10-21 10:27:18 +02:00
parent f3eb94145f
commit cd131f1006

View File

@@ -896,7 +896,7 @@ public:
template<class Widget>
void updateWidgetFromCheckStatus(BaseAspect *aspect, Widget *w)
{
const bool enabled = !m_checked || m_checked->value();
const bool enabled = !m_checked || m_checked->volatileValue();
if (m_uncheckedSemantics == UncheckedSemantics::Disabled)
w->setEnabled(enabled && aspect->isEnabled());
else