forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user