SDK/BaseWidget: Fix entity activation of disabled widgets

This commit is contained in:
Lynix 2019-07-13 23:52:31 +02:00
parent 9a8ccee041
commit 6d417c6e54
1 changed files with 3 additions and 0 deletions

View File

@ -212,6 +212,9 @@ namespace Ndk
auto it = std::find_if(m_entities.begin(), m_entities.end(), [&](const WidgetEntity& widgetEntity) { return widgetEntity.handle == entity; });
NazaraAssert(it != m_entities.end(), "Entity does not belong to this widget");
if (!IsVisible())
entity->Disable(); // Next line will override isEnabled status
it->isEnabled = true;
});